This commit is contained in:
John Alanbrook 2023-06-05 19:48:46 +00:00
parent 3252f219d3
commit 1ac4693931
2 changed files with 8 additions and 2 deletions

View file

@ -173,6 +173,7 @@ var pause = {
unpause() {
unregister_gui(pause.gui);
sim_start();
},
input_escape_pressed() {
@ -186,6 +187,7 @@ var gamepawn =
{
pause() {
register_gui(pause.gui);
sim_pause();
},
input_escape_pressed() {

View file

@ -10,12 +10,16 @@ var exitgame = function()
quit();
};
var colorshifter = {
color: Color.green,
};
Tween.start(colorshifter.color, Color.green, Color.blue);
var options = GUI.column({
items: [
GUI.text_fn("START", {action: startgame}),
GUI.text_fn("START", {action: startgame, hovered: colorshifter }),
GUI.text_fn("EXIT", {action: exitgame}),
GUI.image_fn({path:"ship1.png"}),
],
hovered: {
color: Color.blue,