mirror of
https://github.com/Kapendev/parin.git
synced 2025-04-26 04:59:54 +03:00
Some bugs and more pointers for global data.
This commit is contained in:
parent
14ce68833c
commit
eb98e15f49
5 changed files with 58 additions and 28 deletions
|
@ -18,7 +18,7 @@ bool update(float dt) {
|
|||
}
|
||||
// Create the drag handle and print if it is dragged.
|
||||
if (uiDragHandle(handleArea, handleOptions)) {
|
||||
println(handleArea.position);
|
||||
printfln("({}, {})", handleArea.position.x, handleArea.position.y);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
|
|
@ -21,14 +21,14 @@ bool update(float dt) {
|
|||
auto group = Rect();
|
||||
// Group 1.
|
||||
group = area.subTop(groupHeight);
|
||||
uiText(group.subLeft(textWidth), "Cool Button", UiOptions(Alignment.left));
|
||||
if (uiButton(group.subLeft(buttonWidth), "")) println("Cool");
|
||||
uiText(group.subLeft(textWidth), "SUPER Button", UiOptions(Alignment.left));
|
||||
if (uiButton(group.subLeft(buttonWidth), "")) println("SUPER");
|
||||
// Margin.
|
||||
area.subTop(groupMargin);
|
||||
// Group 2.
|
||||
group = area.subTop(groupHeight);
|
||||
uiText(group.subLeft(textWidth), "Super Button", UiOptions(Alignment.left));
|
||||
if (uiButton(group.subLeft(buttonWidth), "")) println("Super");
|
||||
uiText(group.subLeft(textWidth), "HOT Button", UiOptions(Alignment.left));
|
||||
if (uiButton(group.subLeft(buttonWidth), "")) println("HOT");
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue