Commit Graph

66 Commits

Author SHA1 Message Date
b85f4e404d Fixed handling of mouse wheel for zooming the terrain. 2020-05-18 11:39:27 +02:00
f6a58c4878 Fixed incorrect clipping of the rendered tiles. 2020-05-18 11:39:07 +02:00
1f6729c037 Changed margins on large dialog content. 2020-05-18 11:22:18 +02:00
90c6531b23 Fixed bug where disabled IconButton triggered supplied click handler. 2020-05-18 11:08:38 +02:00
4b57ace9d6 Temp 2020-05-17 21:15:44 +02:00
498021456d Settings are stored.
Window location is passed to new renderer.
2020-05-17 21:06:42 +02:00
89c8a5225e Fixed Research dialog. 2020-05-17 20:24:44 +02:00
28ab816bae Fixed intro dialog (and generic part of showing dialogs). 2020-05-17 16:13:26 +02:00
3474d7d973 First compiling & running version. 2020-05-17 10:56:56 +02:00
a139b87d58 Add go generate to release script. 2020-05-14 14:45:40 +02:00
093cef549c Added extract command (extracts resources to the current working directory). 2020-05-14 14:43:13 +02:00
b68107b74a Added release script. 2020-05-14 14:37:06 +02:00
ad7c149baf Changed appearance of tooltips a bit.
- Bit smaller text, background half transparent.
2020-05-14 12:59:46 +02:00
7150d03d16 Enabled the mouse for dialing digits.
Changed intro/readme a bit (dig -> harvest).
2020-05-14 12:59:11 +02:00
c926ae2ef9 Added bonusses when flower is adjacent to more flowers 2020-05-14 08:39:42 +02:00
013fe4bdb6 Added tooltips. 2020-05-14 08:29:23 +02:00
f57a9dd845 Extended README. 2020-05-14 07:47:45 +02:00
76ac685cbb Added panning with keyboard.
Changed D for digging into H for harvesting.
2020-05-14 07:47:29 +02:00
c27d43e323 Rename Rect to RectAbs and renamed RectSize to Rect. 2020-05-12 13:55:30 +02:00
8e7101e67d Updated/extended README. 2020-05-12 08:51:10 +02:00
3717cfd872 Fixed bug where double digits in phone number weren't accepted properly (second digit required 10-digit strokes, third digit was impossible). 2020-05-11 15:52:43 +02:00
ee7f99166c Command (Windows) key is now supported as modifier key for dragging. 2020-05-11 15:48:18 +02:00
bfe0c9003d Made settings button disabled for now. 2020-05-11 15:45:55 +02:00
8236b65c06 No click event is generated when control is disabled. 2020-05-11 15:38:34 +02:00
1008b7b34b Can't plant flower when the control key is still down. 2020-05-11 15:32:41 +02:00
905aad2afa Can't plant flower over existing flower. 2020-05-11 15:27:22 +02:00
9f19e4bd92 Updating flower texts after closing a dialog to be sure. 2020-05-11 15:23:07 +02:00
cc8f8da5df Switched to regular embedding of resources. 2020-05-11 15:03:06 +02:00
c8cb0095a1 Added generation for embedding resources. 2020-05-11 14:59:08 +02:00
5e822d0cf9 Implemented research. 2020-05-11 14:41:42 +02:00
5ebd582498 Added keyboard support for zooming.
Added information but to show intro.
2020-05-11 12:05:54 +02:00
a6004a8ab6 Added "new game" functionality. 2020-05-11 11:53:15 +02:00
9641719579 Added intro dialog.
Refactored event handling to be able to "handle" events so no other controls will handle the same event again.
2020-05-11 11:44:50 +02:00
a72f416650 Disable hover effects when mouse leaves window. 2020-05-11 08:03:33 +02:00
6a7843f314 Added serialization of game state. 2020-05-11 03:09:01 +02:00
0cb57c5940 Changed config dir (more unique). 2020-05-11 02:52:42 +02:00
e26de92f1d Maded flower buttons smaller (less tall). 2020-05-11 02:50:39 +02:00
3a8ad733a4 Enabled VSync & added setting. 2020-05-11 01:20:23 +02:00
a07d3c1c82 Changed panning of map (Ctrl+LMB or MMB instead of LMB). 2020-05-11 01:15:48 +02:00
14454cfd5e Switched coneflower & tulip. 2020-05-11 00:46:26 +02:00
3407a93586 Added flower types. 2020-05-11 00:00:35 +02:00
1c208152e8 Implemented digging of flowers.
Renamed poppy to anemone.
2020-05-10 23:00:19 +02:00
243e204f48 Added game mechanic to buy/plant flowers. 2020-05-10 20:44:20 +02:00
cd5ca3f04f Added tool to color image.
Separated some image related methods.
Added feedback for simulation speed (colored buttons).
2020-05-10 17:40:56 +02:00
b14f79a61a Lots of UI work.
Added more icons and placed buttons on the bars.
Implemented pause/run/fast.
2020-05-10 17:16:18 +02:00
44aef25d34 Zoom around tile that is hovered.
Inversed zoom on projection (previously how much smaller the content would be, now it is the magnification).
2020-05-10 12:40:44 +02:00
5c0824bafb Extended ControlBase. Added/changed Point/PointF/Rectangle (now backed by SDL struct). Tweaked poppy traits. 2020-05-10 12:22:07 +02:00
1cf13b0ec9 Added color parsing (hex to sdl.Color). 2020-05-10 10:57:13 +02:00
8e2b80395d Added support for (horizontally) aligment on text rendering. 2020-05-10 10:57:00 +02:00
69c8ae72f3 Updated textures (cropped & slightly resized).
Textures used to be 512x512px, cropped them to 128x160px. The width of the texture was first cropped to 130px and then resized to 128px (height was not resized).
2020-05-10 10:56:20 +02:00