smooth main menu and option

This commit is contained in:
Ragot mathis
2020-04-29 16:58:19 +02:00
parent 29497d4a41
commit 70fbdca01c
7 changed files with 12 additions and 10 deletions
Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.6 MiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 768 B

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 717 B

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 198 KiB

+7 -6
View File
@@ -1,16 +1,17 @@
<gc_scene>
<data>
<sprite name="panel" src="assets/ui/panel.png" />
<sprite name="panel" src="assets/ui/sample_background.png" />
<sprite name="button_background" src="assets/ui/button_background.png" />
<sprite name="loading" src="assets/ui/background_rpg.png" />
<font src="assets/fonts/roboto.ttf" />
<sprite name="background" src="assets/ui/background_menu.png" />
</data>
<gc_entities>
<camera x="0" y="0" />
<panel src="panel" x="50%" y="45%" width="300" height="69%"/>
<text text="Forecasting Village" x="50%" y="25%" resize="false"/>
<button text="Start Game" x="50%" y="50%" click="start_button" color="black" width="200" resize="false" />
<button text="Options" x="50%" y="61%" click="options" color="black" width="200" resize="false" />
<button text="Quit game" x="50%" y="72%" click="quit" color="black" width="200" resize="false" />
<panel src="background" x="50%" y="50%" width="100%" height="100%"/>
<panel src="panel" x="50%" y="60%" width="50%" height="55%"/>
<button text="Start Game" x="50%" y="47%" click="start_button" color="black" width="30%" height="20%" resize="false" />
<button text="Options" x="50%" y="61%" click="options" color="black" width="30%" height="20%" resize="false" />
<button text="Quit game" x="50%" y="75s%" click="quit" color="black" width="30%" height="20%" resize="false" />
</gc_entities>
</gc_scene>
+5 -4
View File
@@ -1,16 +1,17 @@
<gc_scene>
<data>
<sprite name="panel" src="assets/ui/panel.png" />
<sprite name="panel" src="assets/ui/sample_background.png" />
<sprite name="button_background" src="assets/ui/button_background.png" />
<sprite name="check" src="assets/ui/check.png" />
<sprite name="cross" src="assets/ui/cross.png" />
<sprite name="left" src="assets/ui/left.png" />
<sprite name="right" src="assets/ui/right.png" />
<sprite name="background" src="assets/ui/background_option.png" />
<font src="assets/fonts/roboto.ttf" />
</data>
<gc_entities>
<panel src="panel" x="50%" y="45%" width="40%" height="65%" />
<text text="Options" x="50%" y="25%" />
<panel src="background" x="50%" y="50%" width="100%" height="100%"/>
<panel src="panel" x="50%" y="55%" width="50%" height="50%" />
<text text="Framerate" x="41%" y="40%"/>
<button x="53%" y="40%" click="framerate_down" sprite="left" width="2%" height="4%" />
<text x="59%" y="40%" size="18" text_id="52" />
@@ -21,6 +22,6 @@
<button x="53%" y="60%" click="resolution_down" sprite="left" width="2%" height="4%" />
<text x="59%" y="60%" size="18" text_id="51" />
<button x="65%" y="60%" click="resolution_up" sprite="right" width="2%" height="4%" />
<button text="Back" x="50%" y="72%" click="goto_main_menu" color="black" width="200" resize="false" />
<button text="Back" x="50%" y="71%" click="goto_main_menu" color="black" width="20%" height="15%"resize="false" />
</gc_entities>
</gc_scene>