mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 06:00:16 +01:00
Moves the chatbar to the output window + adds missing tgui styles (#1366)
* i hate this * Merge branch 'master' into bars * weh
This commit is contained in:
+43
-43
@@ -62,53 +62,13 @@ window "mainwindow"
|
||||
elem "split"
|
||||
type = CHILD
|
||||
pos = 3,0
|
||||
size = 634x417
|
||||
size = 637x440
|
||||
anchor1 = 0,0
|
||||
anchor2 = 100,100
|
||||
saved-params = "splitter"
|
||||
left = "mapwindow"
|
||||
right = "infowindow"
|
||||
is-vert = true
|
||||
elem "input"
|
||||
type = INPUT
|
||||
pos = 3,420
|
||||
size = 517x20
|
||||
anchor1 = 0,100
|
||||
anchor2 = 100,100
|
||||
background-color = #d3b5b5
|
||||
is-default = true
|
||||
border = sunken
|
||||
saved-params = "command"
|
||||
elem "saybutton"
|
||||
type = BUTTON
|
||||
pos = 600,420
|
||||
size = 40x20
|
||||
anchor1 = 100,100
|
||||
anchor2 = none
|
||||
saved-params = "is-checked"
|
||||
text = "Chat"
|
||||
command = ".winset \"saybutton.is-checked=true ? input.command=\"!say \\\"\" : input.command=\"\"saybutton.is-checked=true ? mebutton.is-checked=false\"\"saybutton.is-checked=true ? oocbutton.is-checked=false\""
|
||||
button-type = pushbox
|
||||
elem "oocbutton"
|
||||
type = BUTTON
|
||||
pos = 520,420
|
||||
size = 40x20
|
||||
anchor1 = 100,100
|
||||
anchor2 = none
|
||||
saved-params = "is-checked"
|
||||
text = "OOC"
|
||||
command = ".winset \"oocbutton.is-checked=true ? input.command=\"!ooc \\\"\" : input.command=\"\"oocbutton.is-checked=true ? mebutton.is-checked=false\"\"oocbutton.is-checked=true ? saybutton.is-checked=false\""
|
||||
button-type = pushbox
|
||||
elem "mebutton"
|
||||
type = BUTTON
|
||||
pos = 560,420
|
||||
size = 40x20
|
||||
anchor1 = 100,100
|
||||
anchor2 = none
|
||||
saved-params = "is-checked"
|
||||
text = "Me"
|
||||
command = ".winset \"mebutton.is-checked=true ? input.command=\"!me \\\"\" : input.command=\"\"mebutton.is-checked=true ? saybutton.is-checked=false\"\"mebutton.is-checked=true ? oocbutton.is-checked=false\""
|
||||
button-type = pushbox
|
||||
elem "asset_cache_browser"
|
||||
type = BROWSER
|
||||
pos = 0,0
|
||||
@@ -231,10 +191,50 @@ window "outputwindow"
|
||||
anchor2 = none
|
||||
saved-params = "pos;size;is-minimized;is-maximized"
|
||||
is-pane = true
|
||||
elem "input"
|
||||
type = INPUT
|
||||
pos = 2,460
|
||||
size = 520x20
|
||||
anchor1 = 0,100
|
||||
anchor2 = 100,100
|
||||
background-color = #d3b5b5
|
||||
is-default = true
|
||||
border = sunken
|
||||
saved-params = "command"
|
||||
elem "saybutton"
|
||||
type = BUTTON
|
||||
pos = 600,460
|
||||
size = 40x20
|
||||
anchor1 = 100,100
|
||||
anchor2 = none
|
||||
saved-params = "is-checked"
|
||||
text = "Chat"
|
||||
command = ".winset \"saybutton.is-checked=true ? input.command=\"!say \\\"\" : input.command=\"\"saybutton.is-checked=true ? mebutton.is-checked=false\"\"saybutton.is-checked=true ? oocbutton.is-checked=false\""
|
||||
button-type = pushbox
|
||||
elem "oocbutton"
|
||||
type = BUTTON
|
||||
pos = 520,460
|
||||
size = 40x20
|
||||
anchor1 = 100,100
|
||||
anchor2 = none
|
||||
saved-params = "is-checked"
|
||||
text = "OOC"
|
||||
command = ".winset \"oocbutton.is-checked=true ? input.command=\"!ooc \\\"\" : input.command=\"\"oocbutton.is-checked=true ? mebutton.is-checked=false\"\"oocbutton.is-checked=true ? saybutton.is-checked=false\""
|
||||
button-type = pushbox
|
||||
elem "mebutton"
|
||||
type = BUTTON
|
||||
pos = 560,460
|
||||
size = 40x20
|
||||
anchor1 = 100,100
|
||||
anchor2 = none
|
||||
saved-params = "is-checked"
|
||||
text = "Me"
|
||||
command = ".winset \"mebutton.is-checked=true ? input.command=\"!me \\\"\" : input.command=\"\"mebutton.is-checked=true ? saybutton.is-checked=false\"\"mebutton.is-checked=true ? oocbutton.is-checked=false\""
|
||||
button-type = pushbox
|
||||
elem "browseroutput"
|
||||
type = BROWSER
|
||||
pos = 0,0
|
||||
size = 640x480
|
||||
size = 640x456
|
||||
anchor1 = 0,0
|
||||
anchor2 = 100,100
|
||||
background-color = #ffffff
|
||||
@@ -244,7 +244,7 @@ window "outputwindow"
|
||||
elem "output"
|
||||
type = OUTPUT
|
||||
pos = 0,0
|
||||
size = 640x480
|
||||
size = 640x456
|
||||
anchor1 = 0,0
|
||||
anchor2 = 100,100
|
||||
is-default = true
|
||||
|
||||
@@ -93,6 +93,8 @@ const setupApp = () => {
|
||||
'pos': '0x0',
|
||||
'size': '0x0',
|
||||
});
|
||||
// SKYRAT EDIT ADDITION - UI
|
||||
based_winset();
|
||||
|
||||
// Enable hot module reloading
|
||||
if (module.hot) {
|
||||
@@ -112,4 +114,12 @@ const setupApp = () => {
|
||||
}
|
||||
};
|
||||
|
||||
// SKYRAT EDIT ADDITION - UI
|
||||
const based_winset = async (based_on_what = 'output') => {
|
||||
const winget_output = await Byond.winget(based_on_what);
|
||||
Byond.winset('browseroutput', {
|
||||
'size': winget_output["size"],
|
||||
});
|
||||
};
|
||||
|
||||
setupApp();
|
||||
|
||||
@@ -860,3 +860,8 @@ em {
|
||||
.ml-3 {
|
||||
margin-left: 3em;
|
||||
}
|
||||
|
||||
/* SKYRAT DARK MODE CLASSES */
|
||||
.mentor {color: #8a2be2;}
|
||||
.looc {color: #d8b555;}
|
||||
.rlooc {color: #b09448;}
|
||||
|
||||
@@ -902,3 +902,8 @@ h1.alert, h2.alert {
|
||||
.ml-3 {
|
||||
margin-left: 3em;
|
||||
}
|
||||
|
||||
/* SKYRAT LIGHT MODE CLASSES */
|
||||
.mentor {color: #8a2be2;}
|
||||
.looc {color: #6699CC; font-weight: bold;}
|
||||
.rlooc {color: #507294; font-weight: bold;}
|
||||
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user