Skip to content

Commit

Permalink
Add predefined ui rows
Browse files Browse the repository at this point in the history
  • Loading branch information
luboslenco committed Nov 8, 2024
1 parent 87f3a54 commit 8b04fdf
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions sources/ts/ui.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ let ui_children: map_t<string, ui_handle_t> = map_create();
let _ui_row2: f32[] = [1.0 / 2.0, 1.0 / 2.0];
let _ui_row3: f32[] = [1.0 / 3.0, 1.0 / 3.0, 1.0 / 3.0];
let _ui_row4: f32[] = [1.0 / 4.0, 1.0 / 4.0, 1.0 / 4.0, 1.0 / 4.0];
let _ui_row5: f32[] = [1.0 / 5.0, 1.0 / 5.0, 1.0 / 5.0, 1.0 / 5.0, 1.0 / 5.0];
let _ui_row6: f32[] = [1.0 / 6.0, 1.0 / 6.0, 1.0 / 6.0, 1.0 / 6.0, 1.0 / 6.0, 1.0 / 6.0];
let _ui_row7: f32[] = [1.0 / 7.0, 1.0 / 7.0, 1.0 / 7.0, 1.0 / 7.0, 1.0 / 7.0, 1.0 / 7.0, 1.0 / 7.0];

function ui_row2() {
ui_row(_ui_row2);
Expand All @@ -18,6 +21,18 @@ function ui_row4() {
ui_row(_ui_row4);
}

function ui_row5() {
ui_row(_ui_row5);
}

function ui_row6() {
ui_row(_ui_row6);
}

function ui_row7() {
ui_row(_ui_row7);
}

function ui_SCALE(ui: ui_t): f32 {
let current: ui_t = ui_get_current();
ui_set_current(ui);
Expand Down

0 comments on commit 8b04fdf

Please sign in to comment.