Commit graph

577 commits

Author SHA1 Message Date
Tad Hardesty
fc26e8d6aa Add tracking of tile currently under cursor 2018-08-29 23:45:47 -07:00
Tad Hardesty
526bb6c88f Forget held modifiers when focus is lost 2018-08-29 23:02:55 -07:00
Tad Hardesty
198f55c366 Allow choosing tools and add a tool settings window 2018-08-29 21:23:23 -07:00
Tad Hardesty
ebb5b94ada Set minimum and maximum zoom levels 2018-08-29 18:04:21 -07:00
Tad Hardesty
7bc05057a0 Open only one copy of a map, handle Ctrl+W when no maps are open 2018-08-29 12:03:25 -07:00
Tad Hardesty
61e70a5e15 Add map Save/Save As/Save Copy As 2018-08-29 11:41:52 -07:00
Tad Hardesty
7d35e79956 Give the tools window a position 2018-08-29 11:23:38 -07:00
Tad Hardesty
e849bed5bc Add libgtk-3-dev to Travis 2018-08-29 10:34:00 -07:00
Tad Hardesty
e801b281f1 Show the correct map name in the picker 2018-08-28 21:59:37 -07:00
Tad Hardesty
6df98210c9 Add open dialogs for environments and maps 2018-08-28 21:49:32 -07:00
Tad Hardesty
238d398da2 Include the numpad in the zoom shortcuts 2018-08-28 20:36:28 -07:00
Tad Hardesty
3765091d73 Add zoom in/out hotkeys 2018-08-28 19:03:27 -07:00
Tad Hardesty
008160dfb4 Move Ctrl+Shift+S to Save As 2018-08-28 18:53:29 -07:00
Tad Hardesty
f1340a5d2b Add toggling layers 2018-08-28 16:44:44 -07:00
Tad Hardesty
8bd3122870 Add menu item and shortcut to reload environment 2018-08-28 11:38:36 -07:00
Tad Hardesty
ff37e3d34a Move gasmask into res/ directory 2018-08-28 09:19:30 -07:00
Tad Hardesty
360f161d12 Add a simple spinner to the loading message 2018-08-28 09:08:35 -07:00
Tad Hardesty
324dbf6d30 Preload icons and time this separately 2018-08-27 22:50:19 -07:00
Tad Hardesty
2f79405348 Change the map renderer to produce a struct with its result 2018-08-27 21:53:55 -07:00
Tad Hardesty
b1b82ff80e Add Ctrl+R shortcut to rerender the map 2018-08-27 21:19:29 -07:00
Tad Hardesty
0db27d5ce8 Add initial tool picker structure 2018-08-27 21:18:57 -07:00
Tad Hardesty
e2bae54eaa Add placeholder Layers menu 2018-08-27 20:28:59 -07:00
Tad Hardesty
49e3aa8082 Rearrange the README 2018-08-27 19:07:56 -07:00
Tad Hardesty
7df535b407 Update rand dependency 2018-08-26 22:40:37 -07:00
Tad Hardesty
0bcdb45289 Update Cargo.lock 2018-08-26 22:35:52 -07:00
Tad Hardesty
46e0d55326 Add a simple error debugging menu 2018-08-26 22:05:23 -07:00
Tad Hardesty
1478f00dc1 Reverse direction of Ctrl-scrolling 2018-08-26 21:49:59 -07:00
Tad Hardesty
abad20b28a Place the Debug window in a more convenient position 2018-08-26 21:46:48 -07:00
Tad Hardesty
9ef15ec502 Midly improve Task ergonomics 2018-08-26 21:46:37 -07:00
Tad Hardesty
065a85b3d5 Abstract object tree and map loading into a task list 2018-08-26 21:38:18 -07:00
Tad Hardesty
a5045c0965 Hide the Windows console in release builds 2018-08-26 20:17:20 -07:00
Tad Hardesty
87f0f4babf Warn rather than error on missing windres 2018-08-26 20:15:00 -07:00
Tad Hardesty
31ec25c79c Add dummy Edit menu 2018-08-26 19:47:56 -07:00
Tad Hardesty
a116feca46 Add debug window to show map stats 2018-08-26 19:39:03 -07:00
Tad Hardesty
bf94082286 Only scroll when the mouse is not in an ImGui window 2018-08-26 19:20:53 -07:00
Tad Hardesty
c299afe6f0 Add placeholder File and Help menus 2018-08-26 19:11:41 -07:00
Tad Hardesty
2e26cfc579 Render all atoms rather than just areas 2018-08-26 17:10:30 -07:00
Tad Hardesty
d4872d9f69 Express the viewport center in pixels 2018-08-26 16:40:46 -07:00
Tad Hardesty
af99b37cca Fix the map being rendered upside-down 2018-08-26 16:38:17 -07:00
Tad Hardesty
0e571e3e96 Allow the mouse wheel to scroll the map area 2018-08-26 16:24:27 -07:00
Tad Hardesty
2dea863205 Add initial work on actual map renderer 2018-08-26 15:58:27 -07:00
Tad Hardesty
92cf1fb4b0 Upgrade test triangle to test quad 2018-08-26 14:42:15 -07:00
Tad Hardesty
62e8978c12 Add zoom menu, access to ImGui metrics window 2018-08-26 02:14:16 -07:00
Tad Hardesty
9c3d9e423a Pass Factory to MapRenderer::prepare 2018-08-26 01:35:00 -07:00
Tad Hardesty
833d670fea Keep an IconCache in the map renderer 2018-08-26 01:17:20 -07:00
Tad Hardesty
afcb52ccb9 Render test texture at consistent 1:1 2018-08-26 00:59:23 -07:00
Tad Hardesty
011a74d68a Update render view each frame (for resizing) 2018-08-26 00:45:07 -07:00
Tad Hardesty
d3353c28b9 Reposition window earlier in the logic 2018-08-26 00:23:37 -07:00
Tad Hardesty
dbfa6d3862 Load texture as Srgb, alpha blend it, nearest-neighbor it 2018-08-26 00:09:40 -07:00
Tad Hardesty
6d551a99d6 Set minimum window dimensions 2018-08-25 23:51:37 -07:00