Skip to content

Commit 86afad2

Browse files
committed
Fix RCSS syntax errors and hide floating windows by default
Fixed unsupported RCSS properties in editor.rcss: - Removed 'outline: none;' (line 233) - not supported in RmlUi - Changed 'display: grid;' to 'display: flex; flex-wrap: wrap;' (line 295) - Removed 'grid-template-columns' (line 296) - not needed with flex - Removed 'object-fit: cover;' (line 322) - not supported in RmlUi Hidden floating windows by default: - Command window (undo/redo/clear buttons) - Status window - Control buttons - Top left menu These were showing on startup causing 3 buttons to appear at the top. They should be shown/hidden as needed by the application logic.
1 parent f8910af commit 86afad2

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

scen_edit/view/rcss/editor.rcss

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,6 @@
230230

231231
.form-input-number:focus {
232232
border-color: #3a7ebf;
233-
outline: none;
234233
}
235234

236235
/* Map Editor specific */
@@ -292,8 +291,8 @@
292291
}
293292

294293
.texture-grid {
295-
display: grid;
296-
grid-template-columns: repeat(auto-fill, minmax(64dp, 1fr));
294+
display: flex;
295+
flex-wrap: wrap;
297296
gap: 5dp;
298297
margin-bottom: 10dp;
299298
}
@@ -319,7 +318,6 @@
319318
.texture-item img {
320319
width: 100%;
321320
height: 100%;
322-
object-fit: cover;
323321
}
324322

325323
.texture-settings {

scen_edit/view/view.lua

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -83,22 +83,22 @@ function View:InitializeRmlUi()
8383
return
8484
end
8585

86-
-- Initialize floating windows
86+
-- Initialize floating windows (hidden by default)
8787
self.commandWindow = RmlUiCommandWindow()
8888
self.commandWindow:Initialize()
89-
self.commandWindow:Show()
89+
-- self.commandWindow:Show() -- Hidden by default
9090

9191
self.statusWindow = RmlUiStatusWindow()
9292
self.statusWindow:Initialize()
93-
self.statusWindow:Show()
93+
-- self.statusWindow:Show() -- Hidden by default
9494

9595
self.controlButtons = RmlUiControlButtons()
9696
self.controlButtons:Initialize()
97-
self.controlButtons:Show()
97+
-- self.controlButtons:Show() -- Hidden by default
9898

9999
self.topLeftMenu = RmlUiTopLeftMenu()
100100
self.topLeftMenu:Initialize()
101-
self.topLeftMenu:Show()
101+
-- self.topLeftMenu:Show() -- Hidden by default
102102

103103
-- Initialize editors (create instances but don't show)
104104
self.triggerEditor = RmlUiTriggerEditor()

0 commit comments

Comments
 (0)