Skip to content

Commit

Permalink
fmt + ?
Browse files Browse the repository at this point in the history
  • Loading branch information
shenjackyuanjie committed Jul 1, 2024
1 parent 42e2a02 commit ff9d31a
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -413,10 +413,9 @@ pub fn py_assert_ship(path: String) -> bool {
if !(founds.0 && founds.1 && founds.2) {
println!(
"warning: {}{}{} not found",
if founds.0 { "" } else { "version " },
if founds.1 { "" } else { "liftedOff " },
if founds.2 { "" } else { "touchingGround " }

if founds.0 { "" } else { "version " },
if founds.1 { "" } else { "liftedOff " },
if founds.2 { "" } else { "touchingGround " }
);
return false;
}
Expand All @@ -425,7 +424,7 @@ pub fn py_assert_ship(path: String) -> bool {
x => {
println!("ERROR while using xml to parse the file!\n{:?}\n----------", x);
return false;
},
}
}
true
}
15 changes: 15 additions & 0 deletions mods/dr_game/menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@

from lib_not_dr import loggers

from pyglet.text import Label

# from . import DR_mod_runtime

logger = loggers.config.get_logger_from_old("client.dr_game_menu", "client")
Expand Down Expand Up @@ -91,6 +93,19 @@ def __init__(self, main_window: ClientWindow):
# batch=self.main_batch,
# group=self.main_group,
# )

# 16、20、24、32、40、48 64
# self.test_label = Label(
# x=20, y=200,
# font_name="Segoe Fluent Icons",
# font_size=32,
# text="\uE003 \uE005 \uE0A2
# \uE88B \uE88C \uE88D \uE985 \uE97E \uF7B5
# \uE971 \uE972 \uE973 \uE974",
# batch=self.main_batch,
# group=self.main_group,
# )

self.enter_ship_editor_button = PressTextButton(
x=100,
y=100,
Expand Down

0 comments on commit ff9d31a

Please sign in to comment.