Ludeon Forums

RimWorld => Mods => Releases => Topic started by: falconne on June 11, 2018, 08:09:21 AM

Title: [1.2] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on June 11, 2018, 08:09:21 AM



Draws the names of rooms, stockpiles and growing zones as labels on the floor, like Prison Architect does.

Features

  • Names are drawn on the floor, so they will not obscure items and furniture on top of them.
  • Rooms can be renamed using a button on the 'Architect -> Orders' menu. Use a blank string to reset.
  • Colour, opacity and size limits of labels can be configured in Mod Settings.
  • The names of rooms come from their role. Rooms without a role don't get a label, for now.
  • Stockpiles will draw their name.
  • Growing zones draw their plant name, unless the player renames the zone, in which case that is shown.
  • Labels will be shown along the bottom edge or left edge of a room or zone, whichever has the most visible tiles.
  • Mod can be added or removed from any save and should not conflict with any other mods.

Notes

  • For now this only works in English (or any language using Latin letters without accents).
  • The placement of labels is not always the smartest; the logic will improve in future updates.
  • Rooms containing zones will show the zone names, but not the room label, as the mod is not yet smart enough to avoid the labels clashing. I will fix that in a future update.

Configuration

  • Disable the display of room labels or zone labels, if you only want one type displayed.
  • Customise maximum size of text.
  • Configure minimum size below which a label will not be drawn.
  • Configure furthest zoom level at which labels will be drawn.





Subscribe: Steam Workshop (https://steamcommunity.com/sharedfiles/filedetails/?id=1408863965)
Direct Download: Github Release (https://github.com/Falconne/LabelsOnFloor/releases)

Source Code: Github (https://github.com/Falconne/LabelsOnFloor)
Licence: GPLv3 (free to do what you like, just give me credit).




(http://i.imgur.com/svyZ00am.png) (https://imgur.com/svyZ00a)

(http://i.imgur.com/k6BUfPsm.png) (https://imgur.com/k6BUfPs)

(http://i.imgur.com/YHhhKYkm.png) (https://imgur.com/YHhhKYk)
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: GendutJr on June 11, 2018, 09:17:42 AM
Simple Mod, helps alot. GREAT! Gotta try this  ;)
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: Kubouch on June 11, 2018, 11:29:22 AM
Great idea! It would be cool to have the option to rename everything (even stockpiles).

As a side note, some time ago, I made a function (https://gitlab.com/rwmods/universal-fermenter/blob/ace34a5078a43d1f42d09d9a3594f2e13d004ef5/Source/Utils.cs#L49-83) which trims unnecessary vowels from a string to fit into a given number of characters. For example

VowelTrim("Building Materials", 13)

would output "Buildng Mtrls". This fitting is used in Dwarf Fortress. I just remembered this when I saw the "Building Mats" which is probably to shorten "Building Materials".

Also some of the fonts seem quite huge (Kitchen). It might be worthwhile to limit the maximum font size (in the mod settings). The above trimming method would help keeping the font size big enough in case of a too long name.

How does it look on small zones/rooms (like 1x1)? Maybe limit the label drawing above some size?

These are just some random thoughts, without actually testing it.
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: The Real Soviet on June 11, 2018, 11:51:14 AM
Nice mod! Before i started to play Rimworld i played much Prison Architect, so i will instantly download this :)
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: sidfu on June 11, 2018, 12:19:50 PM
instead of a mod opton to disable a icon u ccan hit ingame would be better.
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on June 12, 2018, 08:17:51 AM
Just done an update with some quick changes based on feedback:

Configure label display in mod options:
  * Customise maximum size of text.
  * Configure minimum size below which a label will not be drawn.
  * Configure furthest zoom level at which labels will be draw.
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: Kirby23590 on June 12, 2018, 08:50:40 AM
Nice! ;D

I also played Prison Architect even if Rimworld is very much a different game.

Useful for telling me which is the stone chunk dump pile and which is the potato farm and healroot farm!

Downloading it!
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on June 13, 2018, 06:13:56 AM
Just done another update. This time I made the text black by default, instead of white, to make the labels more subtle.

You can switch it back to white if you prefer, in the Mod Options, as well as configure the label opacity.
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on June 17, 2018, 05:24:02 AM
Done another update: Rooms can now be renamed using a button on the 'Architect -> Orders' menu.
Title: Re: [B19] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on August 28, 2018, 05:45:26 AM
Mod has been updated for v0.19
Title: Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: MisterVertigo on August 31, 2018, 12:13:09 AM
Quote from: sidfu on June 11, 2018, 12:19:50 PM
instead of a mod opton to disable a icon u ccan hit ingame would be better.
I just found this thread, and this mod looks really great! I have to agree with this post that a button to toggle this on and off would be perfect. Put it down in the bottom-right corner where you toggle viewing zones, roofs, etc.
Title: Re: [1.0] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on October 20, 2018, 06:33:02 AM
Updated to 1.0
Title: Re: [1.0] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: publicuser on October 20, 2018, 07:28:56 AM
not support Chinese?
Title: Re: [1.0] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on October 21, 2018, 02:01:08 AM
Quote from: publicuser on October 20, 2018, 07:28:56 AM
not support Chinese?

Only English for now, sorry. The labels are created using images for the letters, so it will be some effort to support other languages.
Title: Re: [1.0] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: publicuser on October 21, 2018, 02:20:58 AM
If you need Chinese characters, I can type it for you
Title: Re: [1.1] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on March 02, 2020, 03:12:56 AM
Updated to 1.1
Title: Re: [1.2] LabelsOnFloor: Draw the names of rooms & zones on the floor
Post by: falconne on August 22, 2020, 07:09:52 PM
Updated for 1.2