Ludeon Forums

Ludeon Forums

  • October 19, 2018, 02:39:43 PM
  • Welcome, Guest
Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: [B19] LabelsOnFloor: Draw the names of rooms & zones on the floor  (Read 2443 times)

falconne

  • Colonist
  • ***
  • Posts: 124
  • Refugee
    • View Profile

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
Direct Download: Github Release

Source Code: Github
Licence: GPLv3 (free to do what you like, just give me credit).







« Last Edit: August 28, 2018, 05:44:52 AM by falconne »
Logged

GendutJr

  • Muffalo
  • *
  • Posts: 5
  • GendutJr.
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #1 on: June 11, 2018, 09:17:42 AM »

Simple Mod, helps alot. GREAT! Gotta try this  ;)
Logged

Kubouch

  • Colonist
  • ***
  • Posts: 166
  • Novice copy-paster
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #2 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 which trims unnecessary vowels from a string to fit into a given number of characters. For example
Code: [Select]
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.

The Real Soviet

  • Drifter
  • **
  • Posts: 46
  • Refugee
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #3 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 :)
Logged

sidfu

  • Colonist
  • ***
  • Posts: 592
  • Refugee
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #4 on: June 11, 2018, 12:19:50 PM »

instead of a mod opton to disable a icon u ccan hit ingame would be better.

falconne

  • Colonist
  • ***
  • Posts: 124
  • Refugee
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #5 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.
Logged

Kirby23590

  • Colonist
  • ***
  • Posts: 514
  • Full Metal Yorkshire
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #6 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!
Logged

One "happy family" in the rims...
Custom font made by Marnador.


falconne

  • Colonist
  • ***
  • Posts: 124
  • Refugee
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #7 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.
Logged

falconne

  • Colonist
  • ***
  • Posts: 124
  • Refugee
    • View Profile
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #8 on: June 17, 2018, 05:24:02 AM »

Done another update: Rooms can now be renamed using a button on the 'Architect -> Orders' menu.
Logged

falconne

  • Colonist
  • ***
  • Posts: 124
  • Refugee
    • View Profile
Re: [B19] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #9 on: August 28, 2018, 05:45:26 AM »

Mod has been updated for v0.19
Logged

MisterVertigo

  • Colonist
  • ***
  • Posts: 511
  • Look into my eyes...
    • View Profile
    • MisterVertigo.NET
Re: [B18] LabelsOnFloor: Draw the names of rooms & zones on the floor
« Reply #10 on: August 31, 2018, 12:13:09 AM »

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.
Logged
"In vertigo you will be..."

"Relax, people. It's a teeny indie game; don't kill it with love." - Bozobub