1
0
mirror of https://github.com/tobspr/shapez.io.git synced 2025-06-13 13:04:03 +00:00
Commit Graph

27 Commits

Author SHA1 Message Date
EmeraldBlock
bee278d4bb Add different message for when waypoint is edited, sync translations 2020-10-25 20:57:17 -05:00
EmeraldBlock
331e7bad0f Allow for both text and shapes in a waypoint, fix minor waypoint bugs
Waypoints get an additional array property of the label broken up into
text and shape keys, obtained using a new function splitLabel().
When displaying, each item is rendered or appended in sequence using a for loop.

Because of the variable number of elements, waypoints in the list are now flexboxes,
and an extra element is added to align the edit icon to the right side.

When calculating the length of a label, the function getLabelLength() is used.
Each shape is treated as a set number of characters, using a new constant SHAPE_TEXT_LENGTH.

Other fixes/changes:

- getWaypointCanvas() uses a shape key instead of a waypoint.

- getWaypointScreenParams() returns an array of label parts,
which include the text and whether the part is a shape key.

- Text and shape width for marker boxes now correctly accounts for scale.
getWaypointScreenParams() now determines shape width using the scale,
and getTextWidth also keeps track of scale in its cache.

- Waypoint sorting no longer right-pads labels with 0's.
2020-10-25 20:51:57 -05:00
tobspr
fa27d1681f Cleanup IS_DEMO flags and introduce Restriction Manager 2020-10-07 09:48:31 +02:00
tobspr
d4617edad5 Rework constant signal dialog 2020-09-28 12:17:13 +02:00
tobspr
fd77ba135a Fix markers and translation 2020-09-23 16:24:10 +02:00
tobspr
9075841768 Migrate old savegames 2020-09-22 09:32:31 +02:00
tobspr
3c34227c24 Unify assets, refactor waypoints 2020-08-14 12:14:15 +02:00
tobspr
5dedb83d06 Minor fixes to the waypoints 2020-07-07 09:14:43 +02:00
isaisstillalive
2722366d68 Commonize create and save confirm method 2020-07-07 09:15:33 +09:00
isaisstillalive
f1bcec65ad Refactor dialog title 2020-07-07 09:15:32 +09:00
isaisstillalive
1e1aa80568 Rename sort to sortWaypoints 2020-07-07 09:15:32 +09:00
isaisstillalive
b1fce1b115 Refactor dialog buttons 2020-07-07 09:15:27 +09:00
isaisstillalive
99c945e169 Change delete marker button to edit marker button 2020-07-07 08:22:53 +09:00
isaisstillalive
8acefda778 Show edit marker dialog instead deleting marker 2020-07-07 08:22:51 +09:00
isaisstillalive
d0d8314d81 Commonize sort method 2020-07-07 08:22:50 +09:00
tobspr
2e266f5f21 Get rid of 'builtins' file since its useless and causes performance issues 2020-06-27 10:51:52 +02:00
tobspr
e59d94360c Minor tslint fix 2020-06-27 10:39:28 +02:00
hexagonhexagon
70f58d5584 Fix bug where waypoints with the same shape key display wrong. 2020-06-25 15:25:44 -04:00
Joker_vD
2b6a8e49d1 Only 14 characters for labels? That's 1/10 of a twit! 2020-06-18 22:26:15 +03:00
tobspr
5c12c605f5 Reworked waypoints 2020-06-16 10:25:31 +02:00
tobspr
a2ee16589f Switch to steam 2020-06-07 12:56:02 +02:00
tobspr
576bd3166f Minor improvements 2020-05-30 19:11:18 +02:00
tobspr
864c20ce26 Fix crash when Show Hints setting is off 2020-05-28 21:58:08 +02:00
tobspr
b2f6e2956c Fix waypoints not being updated 2020-05-28 21:09:20 +02:00
tobspr
e85728b73d Further waypoint improvements 2020-05-28 20:36:53 +02:00
tobspr
3071bba633 store waypoints in savegame 2020-05-28 20:03:35 +02:00
tobspr
ec021780d8 Initial waypoint support 2020-05-28 19:40:48 +02:00