From 0eb7cc6d11fb30ab04379d2eedd40e828dc3e4fb Mon Sep 17 00:00:00 2001
From: CrazyAmphibian <0crazyamphibian@gmail.com>
Date: Thu, 22 Aug 2024 19:27:05 -0700
Subject: [PATCH 1/3] makes the UI works good.
---
code/modules/RCD/RCD.dm | 6 ++++--
code/modules/RCD/RPD.dm | 27 +++++++++++++++----------
code/modules/html_interface/RCD/RCD.css | 13 ++++++++++++
3 files changed, 33 insertions(+), 13 deletions(-)
diff --git a/code/modules/RCD/RCD.dm b/code/modules/RCD/RCD.dm
index 3e93c8a7e6bc..6a070aa5d1b9 100644
--- a/code/modules/RCD/RCD.dm
+++ b/code/modules/RCD/RCD.dm
@@ -95,10 +95,10 @@
var/dat = ""
dat += {"
- Selected:
-
+
Available schematics
@@ -165,10 +165,10 @@
schematichtml=replacetext(replacetext(schematichtml,"id=\"layer_selected\"","id=\"layer_selectedauto\""),"id=\"layer_center_selected\"","id=\"layer_center_selectedauto\"")
schematichtml+=multitext
schematichtml+=autotext
- interface.updateContent("schematic_options", schematichtml )
+ interface.updateContent("schematic_options1", schematichtml )
interface.updateContent("schematic_options2", schematichtml )
else
- interface.updateContent("schematic_options", " ")
+ interface.updateContent("schematic_options1", " ")
interface.updateContent("schematic_options2", " ")
diff --git a/code/modules/html_interface/RCD/RCD.css b/code/modules/html_interface/RCD/RCD.css
index b891143a3049..23d2932dbf57 100644
--- a/code/modules/html_interface/RCD/RCD.css
+++ b/code/modules/html_interface/RCD/RCD.css
@@ -209,7 +209,7 @@ left:160px;
image-rendering:pixelated;
}
-#schematic_options{ /*this is a really, really awful way to lay things out.*/
+#schematic_options1{ /*this is a really, really awful way to lay things out.*/
visibility: hidden;
}
#schematic_options2{ /*but it's not my fault IE doesn't support sticky positioning.*/
From df363508b1d2ae55a17335a3dd808648705528a0 Mon Sep 17 00:00:00 2001
From: CrazyAmphibian <0crazyamphibian@gmail.com>
Date: Thu, 22 Aug 2024 22:33:43 -0700
Subject: [PATCH 3/3] made tile painter look better
---
code/modules/html_interface/RCD/RCD.css | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/code/modules/html_interface/RCD/RCD.css b/code/modules/html_interface/RCD/RCD.css
index 23d2932dbf57..ee6744d8fdb9 100644
--- a/code/modules/html_interface/RCD/RCD.css
+++ b/code/modules/html_interface/RCD/RCD.css
@@ -209,6 +209,15 @@ left:160px;
image-rendering:pixelated;
}
+#schematic_options{ /*because we removed the gradient earlier, we have to re-add it back*/
+ background:linear-gradient(rgb(57,57,57) 0%,rgb(72,72,72) 4% , rgb(39,39,39) 100%);
+ width:100%;
+ left:-50px
+ top:0px;
+ padding:1em;
+ margin-top:-7px;
+ margin-left:-10px;
+}
#schematic_options1{ /*this is a really, really awful way to lay things out.*/
visibility: hidden;
}