Commit Graph

2905 Commits

Author SHA1 Message Date
Haven1433
f341a6f27c bugfixes 2022-09-11 22:04:55 -05:00
Haven1433
86b89c4290 improve removal logic 2022-09-11 21:52:11 -05:00
Haven1433
72faa5d79d beef up ASCII text logic
include the idea of escape characters, so we can type the anchor character, type spaces (or not if it's the start of the run), and type the escape character \ itself.
2022-09-11 21:27:27 -05:00
Haven1433
610171b59a fix broken behavior
New rule: when clearing format and the run starts _before_ what we're clearing, leave the pointers and a NoInfoRun. Before this rule, we would clear out the anchor as well, which could cause some confusion if that anchor/format was re-added later, since it wouldn't know about tables that point to it.

Fix bug in script parser: next text runs should know about pointers to them
2022-09-11 20:59:35 -05:00
Haven1433
e376d6d664 Write a serialize routine for ModelTable
Lets you do stuff like
table['data.pokemon.moves.levelup'][4].Serialize('movesFromLevel')
2022-09-11 14:04:07 -05:00
Haven1433
10938577aa make constantRef work for games outside the primary 9 2022-09-11 13:08:15 -05:00
Haven1433
1aaf079f8d updating shiny odds for French FireRed 2022-09-11 08:04:19 -05:00
Haven1433
6cb4312fe5 fix regression
clear the way before adding blockmaps
2022-09-10 21:41:53 -05:00
Haven1433
dfcaae90c4 improve exception information from MethodCommand 2022-09-10 21:30:28 -05:00
Haven1433
feb334b7ec allow ~1 to reduce same-name element noise 2022-09-10 21:19:24 -05:00
Haven1433
29dd2bc9cf emerald publisher logo tileset/palette 2022-09-10 20:56:10 -05:00
Haven1433
5a104b3039 allow TableStreamRun to match an ArrayRun if the format matches
This can happen if the user gives a name to a tablestreamrun with a fixed length - it becomes an ArrayRun.

Allow the StreamElementViewModel to accept pointers of both streams and arrays when judging the UsageCount.

Allow
2022-09-10 20:48:51 -05:00
Haven1433
0db2ce46e1 improve 'got a crash' copied text
copy a number of lines that varies based on the number of tabs.
2022-09-10 20:27:39 -05:00
Haven1433
15d3b6d411 SelectedAddress should always have a set 2022-09-10 20:13:16 -05:00
Haven1433
386f52d2bd handle null text in tooltips 2022-09-10 19:23:46 -05:00
Haven1433
f94eeb38df Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2022-09-09 22:40:35 -05:00
Haven1433
31c9e648bb implement details for R/S/E 2022-09-09 22:40:28 -05:00
Haven1433
201ecae9be thumb compiler improvements
support multiline comments /**/
support .equ directives
support .hword and .byte directives
2022-09-09 22:40:12 -05:00
Haven1433
e23764e607 check in progress
add works, but remove is still buggy
2022-09-09 22:28:17 -05:00
TheDiamondMiner
99ce6175de
Fixed Typo (#98) 2022-09-09 21:14:33 -05:00
Haven1433
464768d791 size reduction
plus some initial code for adding new / existing
2022-09-07 23:13:53 -05:00
Haven1433
7c82d38d96 add new runtype / fix undo
also add some drag interactions
2022-09-07 19:51:59 -05:00
Haven1433
8a2c2763f8 code updates 2022-09-07 06:50:53 -05:00
Haven1433
440071f477 use drag icons instead of buttons 2022-09-06 20:03:27 -05:00
Haven1433
1649b35603 connection editing first pass 2022-09-06 19:19:00 -05:00
Haven1433
2427daf76f render OWs 2022-09-05 23:02:36 -05:00
Haven1433
4273c0ef70 add automatic scrolling of blocks when right-clicking the map 2022-09-05 21:01:32 -05:00
Haven1433
eecde5212f make scrollbar width a multiple of 16
having even sizes helps raster-rendering to work better
2022-09-05 20:45:16 -05:00
Haven1433
8c3beaa4df hover selection
also fix the data binding issue (PropertyChanged event was in both the subclass and the baseclass).
2022-09-05 20:44:44 -05:00
Haven1433
8ff604125c fix clipping issue 2022-09-05 11:44:34 -05:00
Haven1433
28b6f2229f right-click map to select a block 2022-09-05 11:43:20 -05:00
Haven1433
2c22819297 support undo for map editing 2022-09-05 11:35:04 -05:00
Haven1433
39db5d9426 drawing blocks 2022-09-05 09:47:09 -05:00
Haven1433
03a0ce6d06 allow selection 2022-09-05 00:48:20 -05:00
Haven1433
2991dcb8ef outline of braille tests 2022-09-04 23:36:39 -05:00
Haven1433
417eb04338 first pass at adding braille support
add the classes / types needed to support braille text. Still needs testing, but this is the skeleton.
2022-09-04 23:32:30 -05:00
Haven1433
d24e150eff add names for specials in FR/LG 2022-09-04 22:21:34 -05:00
Haven1433
be3b053d12 Merge branch 'master' of https://github.com/haven1433/HexManiacAdvance 2022-09-04 21:26:06 -05:00
TheDiamondMiner
7f86f06817
Updated description for setmaptile command (#97)
* Added list varmacros on the defaut .toml and updates script reference as per shiny's request

* changed description

* Made your changes
2022-09-04 19:01:59 -05:00
Haven1433
a69bce0547 Improve zooming
zoom in based on the cursor
2022-09-04 15:12:04 -05:00
Haven1433
cc845d9e1a Add Block View
For now, just put them against the left edge.
2022-09-04 14:07:13 -05:00
Haven1433
14fba508cc improvents
zoom
switching as you click/drag
lazy loading
2022-09-04 00:36:36 -05:00
Haven1433
f4e173bc49 improve paste logic
when pasting text, always complete the current cell by putting an extra space on the end. This might not be quite what we want, as we may want to paste something and then be in the middle of a cell edit... but more often, we want to paste multiple cells, and the last cell doesn't commit correctly if we didn't copy a space.
2022-09-03 23:04:25 -05:00
Haven1433
5d24810343 "goto source" in text tool 2022-09-03 22:05:29 -05:00
Haven1433
21eb4fc006 add down arrow graphics for menus/text 2022-09-03 21:16:20 -05:00
Haven1433
b81bd0506a implement missing method 2022-09-03 21:01:47 -05:00
Haven1433
5630ea5eb9 Update tools after editing the last byte in a table/stream 2022-09-03 20:52:31 -05:00
Haven1433
d22478a002 don't auto-change palettes when 8x8 editing a 16 color sprite
If a single sprite only supports 16 colors but has multiple palettes, you can cycle through the available palettes while editing it. But editing a 8x8 tile has special logic that causes it to switch the palette associated with a tile... which doesn't work in this case. So the 8x8 special logic should be skipped if its a 16-color image.
2022-09-03 20:51:59 -05:00
Haven1433
ed5a9eb47c fix D5 in scripts for R/S/E
R/S don't seem to have this commmand. Emerald does. In FR it's a nop.
2022-09-03 20:12:48 -05:00
Haven1433
ddf14d3837 Code cleanup 2022-09-03 00:07:36 -05:00