mirror of
https://github.com/jugeeya/UltimateTrainingModpack.git
synced 2024-11-24 10:54:16 +00:00
Small fixes
This commit is contained in:
parent
6d09ed118f
commit
ac8af5f6dc
2 changed files with 2 additions and 1 deletions
|
@ -72,6 +72,7 @@ pub unsafe fn set_menu_from_json(message: &str) {
|
||||||
pub fn spawn_menu() {
|
pub fn spawn_menu() {
|
||||||
unsafe {
|
unsafe {
|
||||||
QUICK_MENU_ACTIVE = true;
|
QUICK_MENU_ACTIVE = true;
|
||||||
|
*MENU_RECEIVED_INPUT.data_ptr() = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,7 @@ unsafe fn draw_log(root_pane: &Pane, log_idx: usize, log: &InputLog) {
|
||||||
fade_out(log_pane, log.ttl, FADE_FRAMES);
|
fade_out(log_pane, log.ttl, FADE_FRAMES);
|
||||||
|
|
||||||
// Handle positioning
|
// Handle positioning
|
||||||
let new_pos_y = (-56.0 * log_idx as f32) + 56.0;
|
let new_pos_y = -52.5 * log_idx as f32;
|
||||||
if new_pos_y != log_pane.pos_y {
|
if new_pos_y != log_pane.pos_y {
|
||||||
log_pane.pos_y = new_pos_y;
|
log_pane.pos_y = new_pos_y;
|
||||||
log_pane.flags |= 1 << PaneFlag::IsGlobalMatrixDirty as u8;
|
log_pane.flags |= 1 << PaneFlag::IsGlobalMatrixDirty as u8;
|
||||||
|
|
Loading…
Reference in a new issue