Skip to content

Commit

Permalink
Fix UI instinct 2 models (#112)
Browse files Browse the repository at this point in the history
* ui ugly but works

* clean for instinct2x

* support for other instinct 2 sizes
  • Loading branch information
pedrorijo91 authored Jan 5, 2025
1 parent f68d8b6 commit 2a7ce64
Show file tree
Hide file tree
Showing 33 changed files with 63 additions and 0 deletions.
5 changes: 5 additions & 0 deletions resources-instinct2/layouts/end_of_match.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<layout id="EndOfMatchLayout">
<label x="center" y="20%" text="Game Ended" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="resultLabel" x="center" y="center" color="Graphics.COLOR_WHITE" font="Graphics.FONT_SMALL" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label x="center" y="80%" text="\@pedrorijo91" color="Graphics.COLOR_WHITE" font="Graphics.FONT_XTINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
</layout>
Binary file added resources-instinct2/layouts/heart_white16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2/layouts/heart_white20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2/layouts/heart_white24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2/layouts/heart_white32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources-instinct2/layouts/initial.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<layout id="InitialLayout">
<label x="center" y="20%" text="Padel Score" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label x="center" y="center" text="\@pedrorijo91" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="versionLabel" x="center" y="80%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_XTINY" justification="Graphics.TEXT_JUSTIFY_CENTER" text="@Strings.AppVersion"/>
</layout>
11 changes: 11 additions & 0 deletions resources-instinct2/layouts/scores.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<layout id="ScoreLayout">
<label id="setsLabel" x="center" y="center" color="Graphics.COLOR_WHITE" font="Graphics.FONT_MEDIUM" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="gamesLabel" x="center" y="55%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_MEDIUM" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="scoreLabel" x="center" y="70%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_LARGE" justification="Graphics.TEXT_JUSTIFY_CENTER" />

<label id="stepsAndHeartLabel" x="100%" y="100%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_TINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="clockLabel" x="center" y="100%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_TINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<bitmap id="steps_icon" x="100%" y="100%" filename="steps_white32.png"/>
<bitmap id="heart_icon" x="100%" y="100%" filename="heart_white32.png"/>

</layout>
Binary file added resources-instinct2/layouts/steps_white16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2/layouts/steps_white20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2/layouts/steps_white24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2/layouts/steps_white32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources-instinct2s/layouts/end_of_match.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<layout id="EndOfMatchLayout">
<label x="center" y="20%" text="Game Ended" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="resultLabel" x="center" y="center" color="Graphics.COLOR_WHITE" font="Graphics.FONT_SMALL" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label x="center" y="80%" text="\@pedrorijo91" color="Graphics.COLOR_WHITE" font="Graphics.FONT_XTINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
</layout>
Binary file added resources-instinct2s/layouts/heart_white16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2s/layouts/heart_white20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2s/layouts/heart_white24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2s/layouts/heart_white32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources-instinct2s/layouts/initial.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<layout id="InitialLayout">
<label x="center" y="20%" text="Padel Score" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label x="center" y="center" text="\@pedrorijo91" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="versionLabel" x="center" y="80%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_XTINY" justification="Graphics.TEXT_JUSTIFY_CENTER" text="@Strings.AppVersion"/>
</layout>
11 changes: 11 additions & 0 deletions resources-instinct2s/layouts/scores.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<layout id="ScoreLayout">
<label id="setsLabel" x="center" y="center" color="Graphics.COLOR_WHITE" font="Graphics.FONT_MEDIUM" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="gamesLabel" x="center" y="55%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_MEDIUM" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="scoreLabel" x="center" y="70%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_LARGE" justification="Graphics.TEXT_JUSTIFY_CENTER" />

<label id="stepsAndHeartLabel" x="100%" y="100%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_TINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="clockLabel" x="center" y="100%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_TINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<bitmap id="steps_icon" x="100%" y="100%" filename="steps_white32.png"/>
<bitmap id="heart_icon" x="100%" y="100%" filename="heart_white32.png"/>

</layout>
Binary file added resources-instinct2s/layouts/steps_white16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2s/layouts/steps_white20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2s/layouts/steps_white24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2s/layouts/steps_white32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources-instinct2x/layouts/end_of_match.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<layout id="EndOfMatchLayout">
<label x="center" y="20%" text="Game Ended" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="resultLabel" x="center" y="center" color="Graphics.COLOR_WHITE" font="Graphics.FONT_SMALL" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label x="center" y="80%" text="\@pedrorijo91" color="Graphics.COLOR_WHITE" font="Graphics.FONT_XTINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
</layout>
Binary file added resources-instinct2x/layouts/heart_white16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2x/layouts/heart_white20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2x/layouts/heart_white24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2x/layouts/heart_white32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions resources-instinct2x/layouts/initial.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<layout id="InitialLayout">
<label x="center" y="20%" text="Padel Score" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label x="center" y="center" text="\@pedrorijo91" color="Graphics.COLOR_WHITE" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="versionLabel" x="center" y="80%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_XTINY" justification="Graphics.TEXT_JUSTIFY_CENTER" text="@Strings.AppVersion"/>
</layout>
11 changes: 11 additions & 0 deletions resources-instinct2x/layouts/scores.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<layout id="ScoreLayout">
<label id="setsLabel" x="center" y="center" color="Graphics.COLOR_WHITE" font="Graphics.FONT_MEDIUM" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="gamesLabel" x="center" y="55%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_MEDIUM" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="scoreLabel" x="center" y="70%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_LARGE" justification="Graphics.TEXT_JUSTIFY_CENTER" />

<label id="stepsAndHeartLabel" x="100%" y="100%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_TINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<label id="clockLabel" x="center" y="100%" color="Graphics.COLOR_WHITE" font="Graphics.FONT_TINY" justification="Graphics.TEXT_JUSTIFY_CENTER" />
<bitmap id="steps_icon" x="100%" y="100%" filename="steps_white32.png"/>
<bitmap id="heart_icon" x="100%" y="100%" filename="heart_white32.png"/>

</layout>
Binary file added resources-instinct2x/layouts/steps_white16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2x/layouts/steps_white20.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2x/layouts/steps_white24.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added resources-instinct2x/layouts/steps_white32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 2a7ce64

Please sign in to comment.