Skip to content

Commit 3309e2a

Browse files
Update 1.2
- Added clock mode - Timer always counts down to a preset time
1 parent 0842c06 commit 3309e2a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+1145
-30
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,11 @@ startSeconds|The seconds the timer should start on|Positive integer
2929
startMinutes|The minutes the timer should start on|Positive integer
3030
textColor[blue, green, red]|The color code the countdown text should use|Integer from 0 to 255
3131
chromaColor[blue, green, red]|The color code the background should use|Integer from 0 to 255
32+
clockmode - enabled|If enabled, the countdown runs in clock mode: The timer automatically counts to the provided time|0: Disabled, 1: Enabled
33+
clockmode - hour|The hour to count to in clock mode|Integer from 0 to 23
34+
clockmode - minute|The minute to count to in clock mode|Integer from 0 to 59
3235

3336
## Roadmap
3437
- [ ] Implement Options Menu in Application
35-
- [ ] Add more options
38+
- [X] Add more options
3639
- [ ] Add more visual effects

StreamTimer.yyp

Lines changed: 99 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/// @description Setup
2+
3+
// set up strings
4+
title = "Timer Options";
5+
6+
// create menu entries
7+
instance_create_layer(0, 0, "MenuLayer", obj_config_textColorSliderTriplet);
8+
// instance_create_layer(0, 0, "MenuLayer", obj_config_bgColorSliderTriplet);

objects/obj_configController/obj_configController.yy

Lines changed: 38 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
directory = "C:\\Users\\" + environment_get_variable("USERNAME") + "\\AppData\\Local\\StreamTimer\\config.ini";
2+
message = "Config created successfully. You can find it here:\n" + directory;
3+
4+
restartMsg = "Press ESC to close the program.";
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
draw_set_halign(fa_center);
2+
draw_set_font(fnt_main_small);
3+
4+
draw_text_color(room_width / 2, room_height / 2 - 20, message, c_white, c_white, c_white, c_white, 1);
5+
draw_text_color(room_width / 2, room_height / 2 + 50, restartMsg, c_white, c_white, c_white, c_white, 1);
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
game_end();

objects/obj_configCreated/obj_configCreated.yy

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/obj_config_textC_r/obj_config_textC_r.yy

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

objects/obj_config_textColorSliderTriplet/obj_config_textColorSliderTriplet.yy

Lines changed: 29 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)