Skip to content

Commit

Permalink
Changes and fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
SonnyX committed Jan 7, 2023
1 parent 7b5adba commit afd9751
Show file tree
Hide file tree
Showing 11 changed files with 66 additions and 27 deletions.
47 changes: 47 additions & 0 deletions backend/.vscode/launch.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "lldb",
"request": "launch",
"name": "Debug executable 'renegade-x-launcher'",
"cargo": {
"args": [
"build",
"--target=i686-pc-windows-gnu",
"--bin=renegade-x-launcher",
"--package=renegade-x-launcher"
],
"filter": {
"name": "renegade-x-launcher",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
},
{
"type": "lldb",
"request": "launch",
"name": "Debug unit tests in executable 'renegade-x-launcher'",
"cargo": {
"args": [
"test",
"--target=i686-pc-windows-gnu",
"--no-run",
"--bin=renegade-x-launcher",
"--package=renegade-x-launcher"
],
"filter": {
"name": "renegade-x-launcher",
"kind": "bin"
}
},
"args": [],
"cwd": "${workspaceFolder}"
}
]
}
4 changes: 4 additions & 0 deletions backend/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"cross-rust-analyzer.target": "i686-pc-windows-gnu",
"lldb.cargo": "cross"
}
2 changes: 1 addition & 1 deletion backend/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ log = "0.4"
download-async = "0.10"
async-trait = "0.1"
json = "0.12"
quick-xml = { version="0.26" }
quick-xml = { version="0.27" }
semver = "1.0"
console-subscriber="0.1.8"
tracing-subscriber="0.3"
Expand Down
2 changes: 1 addition & 1 deletion compile with cross.bat
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
cd backend
cross update
cargo update
cross build --release --target=i686-pc-windows-gnu
cd ..
echo F|xcopy /Y backend\target\i686-pc-windows-gnu\release\renegade-x-launcher.exe RenegadeX-Launcher.exe
Expand Down
4 changes: 0 additions & 4 deletions dom/chat.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,6 @@
width: *;
}

menu.chat_menu {
aspect: "Emu.chat_menu";
}

div.chat {
height: *;
min-height: 200dip;
Expand Down
8 changes: 4 additions & 4 deletions dom/containers.css
Original file line number Diff line number Diff line change
Expand Up @@ -165,10 +165,6 @@ div.titlebar > .title {
height: *;
}

.footer-margin {
aspect: "footer_progress";
}

.join_server {
min-width: 600dip;
max-width: 700dip;
Expand Down Expand Up @@ -240,6 +236,10 @@ div.titlebar > .title {
height: *;
}

.mwidth {
width: *;
}

.menu {
position: absolute;
bottom: 17dip;
Expand Down
18 changes: 5 additions & 13 deletions dom/elements.css
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,6 @@ output {
text-overflow:inherit;
text-transform: inherit;
white-space: inherit;
aspect: "Emu.loadOutput";
}

progressbar {
aspect: "Emu.loadOutput";
}

input|text {
Expand Down Expand Up @@ -64,7 +59,6 @@ input|text {
#map_video {
width: 320;
height: 180;
aspect: "Emu.videoHandler";
}

input|text.searchbar {
Expand Down Expand Up @@ -120,7 +114,6 @@ button.bool {
background-position: 10dip center;
background-repeat: no-repeat;
background-size: auto 10dip;
aspect: "bool_setting";
}

button.bool.true {
Expand Down Expand Up @@ -293,7 +286,6 @@ button#update, button#launch {
background-position: center;
background-repeat: no-repeat;
background-size: auto 12dip;
aspect: "filter";
cursor: pointer;
}

Expand Down Expand Up @@ -487,11 +479,11 @@ table.servers {
}
table:root > tbody > tr > td:nth-child(1) { max-width:5dip; color: rgba(0,0,0,0)}

table:root > thead > tr > th:nth-child(1) { width:5dip; }
table:root > thead > tr > th:nth-child(2) { width:50%; }
table:root > thead > tr > th:nth-child(3) { width:21%; }
table:root > thead > tr > th:nth-child(4) { width:12%; }
table:root > thead > tr > th:nth-child(5) { width:12%; }
table:root > thead > tr > th:nth-child(1) { width: 5dip; }
table:root > thead > tr > th:nth-child(2) { width: *; }
table:root > thead > tr > th:nth-child(3) { width: 150dip; }
table:root > thead > tr > th:nth-child(4) { width: 60dip; }
table:root > thead > tr > th:nth-child(5) { width: 60dip; }

table:root th[order=ascend] {
foreground-image:url(stock:arrow-down);
Expand Down
2 changes: 1 addition & 1 deletion dom/footer.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class Footer extends Element {
}

get_progressbar_style(width) {
return printf("width:%s%%", width);
return printf("width:%s%%%%", width);
}

render(props) {
Expand Down
2 changes: 1 addition & 1 deletion dom/modals/launcher-progress-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export class LauncherProgressModal extends Element
download_speed = "0";

get_progressbar_style(width) {
return printf("width:%s%%", width);
return printf("width:%s%%%%", width);
}

render(props) {
Expand Down
2 changes: 1 addition & 1 deletion dom/modals/progress-modal.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export class ProgressModal extends Element
in_progress = false;

get_progressbar_style(width) {
return printf("width:%s%%", width);
return printf("width:%s%%%%", width);
}

actionOrProgressbars() {
Expand Down
2 changes: 1 addition & 1 deletion dom/servers.js
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ export class Servers extends Element {
<Slider {...this.server_list} />
<checkmark class={"big" + (this.server_list.same_version ? " checked" : "")} toggle /><p class="nowrap">Same version</p>
</div>
<div class="body mheight">
<div class="body mheight mwidth">
<ServersTable />
</div>
<div class="titlebar">
Expand Down

0 comments on commit afd9751

Please sign in to comment.