Commit Graph

196 Commits

Author SHA1 Message Date
121428414c Add input locks for text entry 2020-11-16 15:34:10 -08:00
98f774b2ae More font fixes and UI changes
- Lowered step size for decal size and depth to 1cm.
 - Changed default max size to 10m.
 - Text decals now show as a circle if they contain only whitespace.
 - Fixed font name in config and defaulted to Calibri if its missing
2020-11-16 15:05:55 -08:00
d31576fb0b Fix font saving and rendering 2020-11-16 14:44:07 -08:00
c9853049c5 Clear rendertex because KSP wont 2020-11-16 14:01:10 -08:00
06137357c1 Close windows when text part is destroyed 2020-11-14 21:15:43 -08:00
dbbc621181 Fix text decal saving and loading
Closes #25
2020-11-14 21:11:16 -08:00
981a167864 Revert "Add fallbacks to all fonts, even squad ones"
This reverts commit ac1289a46e.
2020-11-13 01:55:42 -08:00
c42e443b4b Add minimum size for text decals 2020-11-13 01:43:08 -08:00
a6e2edc475 use URL-style string escaping 2020-11-13 01:42:55 -08:00
e82b02b0e5 Fix overlapping text and add text escaping 2020-11-12 21:25:24 -08:00
ea8c069d68 Fix issues with fallback fonts
Fixed TMP subobjects being deleted, causing fallback fonts to fail in some situations.
closes #24
2020-11-12 20:10:40 -08:00
ac1289a46e Add fallbacks to all fonts, even squad ones 2020-11-12 14:55:04 -08:00
e6288942ea Cleanup and fix onVariantApplied 2020-11-09 19:34:34 -08:00
1ebed608a8 Fix corrupted text rendering
Fix text corruption when rendering text right after a scene change by delaying it by a single frame in OnLoad
2020-10-11 03:05:07 -07:00
62bdd151e1 Refactor to rearrange initialization code
• Add matrix parsing code
• Add target serialization
• Rearrange initialization to allow loading targets from config soon
2020-10-09 19:30:59 -07:00
f5af8a4d53 Merge branch 'develop' into feature-multiProject 2020-10-09 17:28:00 -07:00
98a790630e Remove call to get_dataPath from constructor
Fixes error in development build of KSP
2020-10-07 00:12:15 -07:00
df95601416 Allow toggling multiprojection in editor 2020-10-05 23:30:22 -07:00
596675ad8d Add naive implementation of multi-projection 2020-10-05 22:42:01 -07:00
5ef33b1d85 Use supported render texture format on DirectX 2020-10-04 14:59:58 -07:00
27ecd82193 Rename font file to avoid windows legacy features 2020-10-04 14:40:07 -07:00
ddce97ee05 Fix styles updating textbox 2020-09-29 23:34:47 -07:00
d1029ca0c1 Fix color parsing and serialization 2020-09-29 19:46:14 -07:00
bf7d5dd933 Fix error on running texture modifiers for text decals 2020-09-28 19:55:44 -07:00
885dfb3397 Logging refactor
dll update
2020-09-28 01:07:33 -07:00
1859e51a2e Documentation and cleanup pass 2020-09-27 18:26:55 -07:00
5a18943db9 Remove test debug stuff 2020-09-27 18:01:44 -07:00
9f32a42e51 Merge branch 'feature-text' into develop 2020-09-27 17:57:02 -07:00
5faa26ae95 TextRenderer cleanup 2020-09-27 00:48:39 -07:00
4a6d019227 More minor tweaks 2020-09-26 19:33:12 -07:00
3df3e08aae Fix text rendering user counter for new renders 2020-09-26 11:32:41 -07:00
8b05dc57e8 Fix localization and material updates 2020-09-26 00:02:34 -07:00
54cd5dce20 Fix text rendering yet again 2020-09-25 22:03:59 -07:00
f3aea02da7 Better UI and shaders 2020-08-21 23:45:10 -07:00
93c3ff8a49 Fix text rendering more 2020-08-21 23:44:58 -07:00
ae351c021f Fix text rendering again, but break bold text again 2020-08-17 13:50:36 -07:00
7ec4c85e8c Handle bold text and several events, wondering whats up with Actions[] 2020-08-06 22:54:51 -07:00
86548a1037 Non-async text rendering integration 2020-07-27 16:16:15 -07:00
cdc8794c54 Various text rendering changes 2020-07-26 19:32:58 -07:00
da3bcf7819 text input changes 2020-07-26 19:30:19 -07:00
7e3f4b84ff Unity serialization rules are stupid 2020-07-25 23:49:47 -07:00
42e6b18845 Text rendering job system 2020-07-25 20:01:41 -07:00
1c776c0969 Allow fonts to disable certain unsupported styles
Also clean up some stuff
2020-07-25 01:36:19 -07:00
2994da628b Fix fitting algorithm for text rendering 2020-07-25 00:47:36 -07:00
dbb3281e95 First working text rendering 2020-07-24 14:39:35 -07:00
7574614776 UI loading cleanup 2020-07-23 17:49:42 -07:00
10da3dd402 Working color picker UI 2020-07-22 22:37:16 -07:00
d5702ee0e7 Color picker UI integration 2020-07-21 00:52:23 -07:00
b1d6e43512 Color picker UI code 2020-07-21 00:07:18 -07:00
365dabc90f Add ColorHSL struct 2020-07-20 17:10:39 -07:00
dfef071175 Box slider script 2020-07-20 00:46:44 -07:00
af05ed43c2 Add start of color picker and reorganize 2020-07-19 23:56:38 -07:00
e87fc48edf Decal text input UI 2020-07-19 21:12:48 -07:00
1316dbb553 Add basic ui controller 2020-07-15 18:12:50 -07:00
b630ddce5e Fix texture initialization 2020-07-13 18:04:10 -07:00
47727ef0ce Fix some gui issues 2020-07-12 22:38:37 -07:00
4a3569a7be UI experiments 2020-07-12 20:27:19 -07:00
a9b05a677e Merge branch 'develop' into feature-text 2020-07-02 20:13:46 -07:00
be641272ad Shader fixes and legacy shader code 2020-07-02 19:40:00 -07:00
1ab8d0f6bc Merge branch 'master' into develop 2020-06-29 22:19:31 -07:00
261da9194b Fix projecting onto parts using B9PS 2020-06-29 18:41:46 -07:00
bf2c2cf940 update csproj 2020-06-28 18:18:19 -07:00
48819878dc Add shader keyword support 2020-06-28 18:18:04 -07:00
ab254595ab Fix inverted scale modes and remove unused logs 2020-06-22 14:47:47 -07:00
4cdfac8ccd Global override for selectability and kill part on detach 2020-06-19 23:54:32 -07:00
5db788ed37 Allow selectability in flight to be disabled 2020-06-19 23:24:01 -07:00
5fc9394908 Enable selection for decal colliders in flight, change layer 2020-06-19 22:45:29 -07:00
d8087cce3a Disable collision in flight scene 2020-06-19 22:09:25 -07:00
7487d3fb04 Fix color parsing 2020-06-19 21:55:05 -07:00
533b1f1cf4 Consolidate config parsing and parse layer value 2020-06-19 21:44:43 -07:00
7980ef4791 Fix infinitely scaled decals with zero scale and depth 2020-06-19 17:03:17 -07:00
4d2623a1c6 Layer Test module
idk man
2020-06-19 16:37:35 -07:00
35381fae65 Rename MaterialModifiers namespace 2020-06-19 16:35:10 -07:00
96c625f6f2 changes 2020-06-19 10:36:13 -07:00
0a77ef57b7 Play around more with text rendering 2020-06-19 01:01:46 -07:00
2122b6a0a7 Working font!
thank you sarbian!
2020-06-17 16:53:51 -07:00
f9d9c228ae Various dead-end attempts at font loading and rendering 2020-06-17 16:53:50 -07:00
ecb3eccfe5 Add blit functions 2020-06-17 16:52:33 -07:00
fae34be358 Multiple fixes 2020-06-17 13:57:36 -07:00
742a8f0f30 Small refactor to remove bounds transform in favor of projector
idk just simplifies some things
2020-06-12 17:29:29 -07:00
38ce1184ea Remove broken culling code and fix flag switching 2020-06-11 21:58:04 -07:00
b09695d602 Use bounds to choose projection targets 2020-06-11 21:01:01 -07:00
23c309fa9a Add culling for offscreen decals 2020-06-11 20:49:13 -07:00
3c5fcedca4 Add visible bounding boxes around projection area 2020-06-11 19:59:53 -07:00
e27267c862 Add size calculation modes 2020-06-11 17:30:31 -07:00
a386281fb2 Add slider for edge wear 2020-06-11 16:52:12 -07:00
3ab1414a19 Better normal map handling for parts with no normals 2020-06-11 14:15:37 -07:00
e2f54cb4f7 Fix tile parsing and decal rotation
• Decals now respond to rotation and offset tools again
• Fix tile value parsing
• Fix broken normals when projecting on parts with no normal maps
2020-06-10 12:20:47 -07:00
723efea492 Remove some more debug statements 2020-06-09 00:03:00 -07:00
45fe3d1039 Update symmetry counterparts when tweakables are adjusted 2020-06-08 20:21:26 -07:00
f098e922cb Localize flag events 2020-06-08 19:50:33 -07:00
a4c46b94d2 Add flag selection to flag decals
• Add flag selection code blatantly stolen from WBDecals
• Fix attachment of symmetrically attached decals
2020-06-08 19:38:35 -07:00
e42ff52fb5 Rework decal parameters so they dont reset when changing variants 2020-06-08 15:38:36 -07:00
b3d817e0c3 more things 2020-06-08 13:14:25 -07:00
43ac251ae4 Documentation pass
nobody will ever read these why am I doing this
2020-06-08 12:17:25 -07:00
de2f42a09f Temporarily remove nonfunctional intersection code
Will probably fix at a later date, but its not needed for the plugin to work
2020-06-08 02:16:30 -07:00
1dddb97ca9 Fix tile indexing 2020-06-08 01:56:24 -07:00
a8313127e2 Debug statement cleanup and fix icon creation 2020-06-07 19:52:17 -07:00
79bdc03c4b Add tiling index and size values, for easier tiling
Also API changes made as I chased a bug
2020-06-07 19:39:09 -07:00
d2f81058f8 Refactor yet again and add autotiling 2020-06-06 13:20:50 -07:00