Room Window
The room window displays current room information including name, description, exits, objects, and other players.
Overview
Room windows:
- Show the current room name and description
- Display obvious exits
- List objects and creatures in the room
- Show other players present
- Update when you move
Configuration
[[windows]]
name = "room"
type = "room"
# Position and size
row = 0
col = 80
width = 40
height = 15
# Room-specific options
show_title = true # Show room name as title
show_description = true # Show room description
show_exits = true # Show obvious exits
show_objects = true # Show items/creatures
show_players = true # Show other players
# Visual options
title_color = "#FFFFFF"
description_color = "#CCCCCC"
exits_color = "#00FFFF"
objects_color = "#AAAAAA"
players_color = "#00FF00"
Properties
show_title
Display room name as widget title:
show_title = true # Room name in title bar
show_title = false # No title/generic title
show_description
Display the room description:
show_description = true # Full description
show_description = false # Hide description
show_exits
Display obvious exits:
show_exits = true # Show "Obvious exits: n, e, out"
show_exits = false # Hide exits
show_objects
Display items and creatures:
show_objects = true # Show objects in room
show_objects = false # Hide objects
show_players
Display other players:
show_players = true # Show player names
show_players = false # Hide players
Display Layout
┌─ Town Square Central ───────────────┐
│ This is the heart of the town, │
│ where merchants hawk their wares │
│ and travelers gather to share news. │
│ │
│ You also see a wooden bench, a │
│ town crier, and a young squire. │
│ │
│ Also here: Adventurer, Merchant │
│ │
│ Obvious paths: north, east, south, │
│ west, out │
└─────────────────────────────────────┘
Component Colors
Style each component separately:
[[windows]]
name = "room"
type = "room"
# Component colors
[windows.colors]
title = "#9BA2B2" # Room name
title_bg = "#395573" # Room name background
description = "#B0B0B0" # Description text
exits = "#00CCCC" # Exit directions
objects = "#888888" # Items/creatures
players = "#00FF00" # Other players
creatures = "#FF6600" # Hostile creatures
Examples
Standard Room Window
[[windows]]
name = "room"
type = "room"
row = 0
col = 80
width = 40
height = 15
show_title = true
show_description = true
show_exits = true
show_objects = true
show_players = true
border_style = "rounded"
Compact Room Info
[[windows]]
name = "room"
type = "room"
row = 0
col = 80
width = 40
height = 5
show_description = false # Hide description
show_objects = false # Hide objects
show_title = true
show_exits = true
show_players = true
Full Width
[[windows]]
name = "room"
type = "room"
row = 0
col = 0
width = "100%"
height = 8
show_border = false
transparent_background = true
Description Only
[[windows]]
name = "room_desc"
type = "room"
row = 0
col = 80
width = 40
height = 10
show_description = true
show_exits = false
show_objects = false
show_players = false
title = "Description"
Exits Only
[[windows]]
name = "exits"
type = "room"
row = 10
col = 80
width = 40
height = 2
show_description = false
show_objects = false
show_players = false
show_exits = true
show_border = false
Room Components
Room Name
Set by <streamWindow id='room' subtitle='Room Name'/>:
title_color = "#9BA2B2"
title_bg = "#395573" # Distinct background
Description
Set by <component id='room desc'>:
description_color = "#B0B0B0"
word_wrap = true # Wrap long descriptions
Exits
Set by <compass> and displayed as text:
exits_color = "#00CCCC"
exits_prefix = "Obvious paths: "
Objects/Creatures
Set by <component id='room objs'>:
objects_color = "#888888"
creature_highlight = true # Highlight creatures
creature_color = "#FF6600" # Creature color
Players
Set by <component id='room players'>:
players_color = "#00FF00"
players_prefix = "Also here: "
Interaction
With links = true:
| Input | Action |
|---|---|
| Click object | Look/interact |
| Click player | Look at player |
| Click exit | Move that direction |
| Right-click | Context menu |
Data Source
Room windows receive data from multiple XML elements:
<streamWindow id='room' subtitle='Town Square'/>
<component id='room desc'>This is the description...</component>
<component id='room objs'>You also see a bench...</component>
<component id='room players'>Also here: Alice, Bob</component>
<compass><dir value='n'/><dir value='e'/></compass>
Troubleshooting
Room not updating
- Check you’re receiving room data
- Verify window stream is correct
- Some areas suppress room info
Missing components
- Enable specific show_* options
- Check game is sending that component
- Verify component colors are visible
Text overflow
- Increase window height
- Enable word wrap
- Hide less important components
See Also
- Compass - Visual exit display
- Text Windows - General text display
- Highlights - Text styling