tween
This commit is contained in:
parent
3252f219d3
commit
1ac4693931
|
@ -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() {
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue