Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lts 2022 r3 #157

Merged
merged 311 commits into from
Nov 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
311 commits
Select commit Hold shift + click to select a range
6eb98bc
[General] Reivewed 'Adding Sound Effects'
gurpreetsinghmatharoo Dec 18, 2023
265b357
[General] Reviewed 'Objects And Instances'
gurpreetsinghmatharoo Dec 19, 2023
7451c38
1
gurpreetsinghmatharoo Dec 19, 2023
5b56c78
1
gurpreetsinghmatharoo Dec 19, 2023
e29768d
Revert "1"
gurpreetsinghmatharoo Aug 7, 2024
afd6c8a
1
gurpreetsinghmatharoo Dec 19, 2023
690c0f4
[General] Reviewed 'Movement and Controls' and 'Summary'
gurpreetsinghmatharoo Dec 19, 2023
cadad93
[General]Added that you can list multiple data types by separating wi…
YYBartT Dec 19, 2023
18eeeff
1
YYBartT Dec 21, 2023
0d694e7
[General]Small changes to Instances page
YYBartT Dec 21, 2023
59ce1d0
1
YYBartT Jan 3, 2024
c9d811e
1
YYBartT Jan 3, 2024
d3959be
Parent Texture Group does not affect children
YYBartT Jan 4, 2024
90d37f4
[General]draw_vertex_texture primitives have confusing UV behaviour c…
YYBartT Jan 9, 2024
74bf274
1
YYBartT Jan 9, 2024
9472690
[General]Debugging page links to itself instead of Debugging Preferences
YYBartT Jan 9, 2024
8e123da
[General]Standalone ternary operations don't work despite manual clai…
YYBartT Jan 9, 2024
5b61020
1
YYBartT Jan 9, 2024
042fd1e
[General]In-Game: mouse_clear() does not detect release state when cl…
YYBartT Jan 9, 2024
0b8ceba
q
YYBartT Jan 9, 2024
27777c3
[General]Manual Content: buffer_read() page does not explain the requ…
YYBartT Jan 9, 2024
a92165a
1
YYBartT Jan 10, 2024
401eeab
Revert "1"
gurpreetsinghmatharoo Aug 8, 2024
c9311c1
[General] Document that you can't create buffers larger than 2 Gibiby…
gurpreetsinghmatharoo Jan 15, 2024
24439c4
[General] Fixes https://github.com/YoYoGames/GameMaker-Bugs/issues/4340
gurpreetsinghmatharoo Jan 16, 2024
45d9095
1
gurpreetsinghmatharoo Jan 16, 2024
7854641
1
gurpreetsinghmatharoo Jan 16, 2024
d7d08fb
12
gurpreetsinghmatharoo Jan 17, 2024
2006b00
[General] remove empty line from kb shorts page
gurpreetsinghmatharoo Jan 18, 2024
15f28b8
[General] Minor improvements to structs/constructors vs objects section
gurpreetsinghmatharoo Jan 18, 2024
ed33f36
[General] Depth text fix
gurpreetsinghmatharoo Jan 18, 2024
c07c5bb
[General] Improvements to the text on the Instances page
gurpreetsinghmatharoo Jan 18, 2024
3968685
[General] Improvements to text on Primitives page
gurpreetsinghmatharoo Jan 18, 2024
50ce2b5
[General] Improvements on the If Else page
gurpreetsinghmatharoo Jan 18, 2024
fc0e18d
[General] camera_get_view_border_x and camera_get_view_border_y manua…
gurpreetsinghmatharoo Jan 18, 2024
39635e0
[General] Fixed bookmark shortcut on Mac
gurpreetsinghmatharoo Jan 18, 2024
38c9809
1
gurpreetsinghmatharoo Jan 19, 2024
43e36bd
1
YYBartT Jan 19, 2024
a1e2ec4
[General]In-Game: get_string_async() causes games to come out of full…
YYBartT Jan 23, 2024
2dd8cd8
1
YYBartT Jan 29, 2024
fc0fcff
[General]variable_clone() doesn't copy script refs in arrays correctly
YYBartT Jan 31, 2024
b304977
1
YYBartT Feb 1, 2024
eb5debe
[General] Changed report button link from contact page to github
gurpreetsinghmatharoo Feb 1, 2024
96348b2
1
gurpreetsinghmatharoo Feb 1, 2024
1f6e098
1
gurpreetsinghmatharoo Feb 1, 2024
ee89e3e
[General] added css appends for index and glossary colours
gurpreetsinghmatharoo Feb 1, 2024
5f9b0f0
[General] Added file for ToC when-closed arrow
gurpreetsinghmatharoo Feb 1, 2024
db9710b
[General] Fixed toc when-closed arrow icon, needed rotation
gurpreetsinghmatharoo Feb 1, 2024
ed6db67
[General] Fixed tag for Declare Temp GML Visual action
gurpreetsinghmatharoo Feb 2, 2024
52889b0
[General] Document that new paths are created closed, not open
gurpreetsinghmatharoo Feb 5, 2024
dd4d199
[General] Change Declare Temp tag to action_temp_variable
gurpreetsinghmatharoo Feb 5, 2024
7565812
[General] https://github.com/YoYoGames/GameMaker-Bugs/issues/4502
gurpreetsinghmatharoo Feb 5, 2024
0925074
[General] fixed no-break space code https://github.com/YoYoGames/Game…
gurpreetsinghmatharoo Feb 5, 2024
db89e48
1
gurpreetsinghmatharoo Feb 5, 2024
52a4b2d
[General] ds_grid_copy() applies source size to dest grid
gurpreetsinghmatharoo Feb 7, 2024
0afb59a
g
gurpreetsinghmatharoo Feb 13, 2024
a6856a3
[General] fixed typo on gpu_set_blendmode_ext_sepalpha
gurpreetsinghmatharoo Feb 22, 2024
0b5a702
1
gurpreetsinghmatharoo Feb 22, 2024
5038394
[General] Document that load_csv only loads strings; update the example
gurpreetsinghmatharoo Feb 23, 2024
c89545e
1
YYBartT Feb 26, 2024
5715892
[General]Mac IDE: Suggest changing the keyboard shortcut for GameMake…
YYBartT Feb 26, 2024
7cf7ad0
[General]Mac IDE: Shift-Option-ArrowKeys not behaving as expected dur…
YYBartT Feb 27, 2024
3a2b7fe
1
gurpreetsinghmatharoo Feb 28, 2024
4ee1f7b
[General] Fixed typo on mp_potential_step_object
gurpreetsinghmatharoo Mar 4, 2024
694ba37
1
YYBartT Mar 5, 2024
df05f13
[General]phy_collision_x/y is marked as real, but is an array
YYBartT Mar 5, 2024
d648404
1
YYBartT Mar 6, 2024
d8a15f8
1
YYBartT Mar 7, 2024
0fd5c91
[General]Update the code example on the async Steam event page
YYBartT Mar 7, 2024
b952b98
[General] Updated GM folder name in tests json example
gurpreetsinghmatharoo Mar 8, 2024
67c760b
[General] Highlighting more that Time Sources need to be destroyed
gurpreetsinghmatharoo Mar 8, 2024
7b78577
[General] Fixed /runtime command typos in examples on Building for Co…
gurpreetsinghmatharoo Mar 8, 2024
a4c2dc2
1
gurpreetsinghmatharoo Mar 8, 2024
3e3e7cf
1
gurpreetsinghmatharoo Mar 8, 2024
6c6cc45
[General] Documented that corner IDs do not work for vertex buffers a…
gurpreetsinghmatharoo Mar 11, 2024
262c894
[General] Fixed description of /of parameter in command line building
gurpreetsinghmatharoo Mar 11, 2024
2a68011
1
YYBartT Mar 11, 2024
d35525b
[General]State explicitly in the manual that instance method static v…
YYBartT Mar 14, 2024
692e87e
1
gurpreetsinghmatharoo Mar 18, 2024
7c643c0
[General] Fix Syntax box on gpu_set_blendmode_ext page
gurpreetsinghmatharoo Mar 18, 2024
b9a6327
1
gurpreetsinghmatharoo Mar 18, 2024
b7d7239
1
gurpreetsinghmatharoo Mar 18, 2024
f4e3883
1
YYBartT Mar 19, 2024
3578266
1
gurpreetsinghmatharoo Mar 20, 2024
feb5e1e
[General] Remove note on text files being encoded as ANSI
gurpreetsinghmatharoo Mar 20, 2024
80217ad
1
gurpreetsinghmatharoo Mar 20, 2024
8f3e3e1
[General] Document that you can't destroy built-in TS with time_sourc…
gurpreetsinghmatharoo Mar 20, 2024
2ca2cdf
[General] Documented that the Draw -> Window Resize event is used on …
gurpreetsinghmatharoo Mar 20, 2024
0823e38
12
gurpreetsinghmatharoo Mar 20, 2024
4c1eeed
[General] Fixed example description on If Object At Place page
gurpreetsinghmatharoo Mar 20, 2024
f1d5b75
[General] Documented that Windows splash screen accepts GIFs but are …
gurpreetsinghmatharoo Mar 21, 2024
a05be76
1
gurpreetsinghmatharoo Mar 21, 2024
df2644e
[General] Removed stray code from Runtime Functions page
gurpreetsinghmatharoo Mar 21, 2024
eb34da8
[General] Fix Mac Package command name (should be PackageZip and Pack…
gurpreetsinghmatharoo Mar 22, 2024
1f07940
1
YYBartT Mar 27, 2024
50cd857
1
YYBartT Mar 28, 2024
862eb88
docs(general): add mouse button icon+ alt text RH snippets
YYBartT Mar 28, 2024
2eb993e
1
gurpreetsinghmatharoo Mar 28, 2024
1b4ee75
docs(general): fixed link to toString function explanation
YYBartT Mar 28, 2024
b12ecf8
1
YYBartT Apr 1, 2024
6839daa
1
YYBartT Apr 1, 2024
3a5eb38
1
YYBartT Apr 2, 2024
f41b551
docs(general): updated broken toString() Method links, added handle t…
YYBartT Apr 2, 2024
2abf3f3
1
YYBartT Apr 5, 2024
272b1c3
1
YYBartT Apr 5, 2024
1fd75f4
1
YYBartT Apr 8, 2024
9309719
1
YYBartT Apr 9, 2024
d9cecc3
1
YYBartT Apr 9, 2024
ba85f0b
docs(general): removed docs on tile inheritance tool
YYBartT Apr 10, 2024
fd864fd
1
YYBartT Apr 10, 2024
77844e6
docs(general): updated tile_get_index & tile_set_index pages
YYBartT Apr 10, 2024
5118618
docs(general): updated some function pages
YYBartT Apr 10, 2024
a0b39ae
1
YYBartT Apr 11, 2024
7b9d678
1
YYBartT Apr 11, 2024
71504e4
1
YYBartT Apr 11, 2024
914b727
docs(general): fixed absolute link on the json_stringify page
YYBartT Apr 11, 2024
2492f78
1
gurpreetsinghmatharoo Apr 12, 2024
214188c
1
gurpreetsinghmatharoo Apr 15, 2024
1be9c5e
docs(general): Feather specifiers are case-sensitive
gurpreetsinghmatharoo Apr 15, 2024
ac580ce
1
gurpreetsinghmatharoo Apr 15, 2024
e11bb30
docs(general): Fixed typo on screenshot on The File System page
gurpreetsinghmatharoo Apr 15, 2024
5318216
docs(general): Fix number of user events mentioned
gurpreetsinghmatharoo Apr 15, 2024
db74488
1
gurpreetsinghmatharoo Apr 17, 2024
d2f6853
docs(general): Fix name of post_textures.bat compiler step
gurpreetsinghmatharoo Apr 17, 2024
c132847
1
gurpreetsinghmatharoo Apr 18, 2024
c5da8da
docs(general): a couple of tiny typo fixes
YYBartT Apr 24, 2024
43c9aff
1
YYBartT Apr 24, 2024
3f85c8e
1
YYBartT Apr 25, 2024
f0a993a
docs(general): mentioned Ctrl + Comma and Ctrl + Period for workspace…
YYBartT Apr 25, 2024
01b70d5
docs(general): Draw Sprite sub-image mistake fix
gurpreetsinghmatharoo Apr 26, 2024
eac8fae
docs(general): Description error for ds_queue_tail()
gurpreetsinghmatharoo Apr 26, 2024
1f32f99
docs(general): Document that static variables cannot be defined condi…
gurpreetsinghmatharoo Apr 26, 2024
1ef9c0a
docs(general): Manual overview page for "Surfaces" doesn't mention fr…
gurpreetsinghmatharoo Apr 26, 2024
6606368
1
gurpreetsinghmatharoo Apr 26, 2024
7cb26fd
1
gurpreetsinghmatharoo Apr 29, 2024
281796c
1
gurpreetsinghmatharoo Apr 29, 2024
ad48cda
docs(general): Fix gamepad axis and button constant links
gurpreetsinghmatharoo Apr 29, 2024
3e17324
1
YYBartT May 1, 2024
0441a6e
1
gurpreetsinghmatharoo Apr 24, 2024
247558a
1
gurpreetsinghmatharoo May 6, 2024
b99c51f
1
gurpreetsinghmatharoo May 7, 2024
910d7b0
docs(general): Document that changing sprite_index to a shorter anima…
gurpreetsinghmatharoo May 7, 2024
0320ad5
docs(general): Clarification for iOS file handling of files with the …
gurpreetsinghmatharoo May 7, 2024
6b8a774
docs(general): Built-In Lights need Vertex Buffers to work
gurpreetsinghmatharoo May 7, 2024
e084bac
docs(general): Clarify description on ds_map_add() to make the differ…
gurpreetsinghmatharoo May 7, 2024
fb872c9
docs(general): Manual Content: Update macOS section of Gamepad Input …
gurpreetsinghmatharoo May 7, 2024
195d7d3
docs(general): draw_light_get element 5 fix
gurpreetsinghmatharoo May 7, 2024
2da1af2
1
gurpreetsinghmatharoo May 7, 2024
fb621a0
docs(general): Compiler batch scripts update
gurpreetsinghmatharoo May 8, 2024
1477d67
1
gurpreetsinghmatharoo May 9, 2024
3ffb22c
1
gurpreetsinghmatharoo May 13, 2024
11dcdf7
1
gurpreetsinghmatharoo May 13, 2024
572b5a7
1
gurpreetsinghmatharoo May 13, 2024
475368c
1
gurpreetsinghmatharoo May 16, 2024
1432afb
1
gurpreetsinghmatharoo May 27, 2024
2b6c966
docs(general): Fixed audio_3D -> audio_3d
gurpreetsinghmatharoo May 28, 2024
7c1f615
1
YYBartT May 28, 2024
3a88318
docs(general): Add to gml.js: asset_sequence, asset_animationcurve, a…
gurpreetsinghmatharoo May 29, 2024
8f934fe
1
YYBartT May 29, 2024
b122a00
1
gurpreetsinghmatharoo Jun 3, 2024
7af6eae
1
gurpreetsinghmatharoo Jun 5, 2024
10b09ba
1
gurpreetsinghmatharoo Jun 6, 2024
0904a27
1
gurpreetsinghmatharoo Jun 7, 2024
c42c15a
docs(general): tilemap_set_at_pixel title fix
gurpreetsinghmatharoo Jun 7, 2024
2b45ae5
1
YYBartT Jun 7, 2024
82a13fe
1
gurpreetsinghmatharoo Jun 7, 2024
5c85cbb
docs(general): Document sprite_delete return value
gurpreetsinghmatharoo Jun 10, 2024
15f9d62
1
gurpreetsinghmatharoo Jun 10, 2024
82f0094
1
gurpreetsinghmatharoo Jun 10, 2024
77485ed
1
gurpreetsinghmatharoo Jun 10, 2024
77ccdc1
docs(general): Add a "Mac/Linux cleaning while on PC" example in "Bui…
gurpreetsinghmatharoo Jun 10, 2024
9f39219
docs(general): fixed missing parentheses around function call on gpu_…
YYBartT Jun 11, 2024
57e88a2
docs(general): replaced hyperlinks with cross-references on Drawing o…
YYBartT Jun 13, 2024
418946c
docs(general): cursor_sprite - manual page doesn't open
YYBartT Jun 18, 2024
7ee05d6
docs(general): shader_set_uniform_matrix & shader_set_uniform_matrix_…
YYBartT Jun 20, 2024
6e67c57
docs(general): ds_list_set() page has an incorrect explanation for it…
YYBartT Jun 20, 2024
3e470c1
docs(general): Error in "layer_get_name" example
YYBartT Jun 21, 2024
c9de90c
1
YYBartT Jun 21, 2024
1c4861b
docs(general): gml_pragma("forceinline" does not work on methods
YYBartT Jun 25, 2024
2735fc4
1
YYBartT Jun 25, 2024
4ee06db
1
YYBartT Jun 25, 2024
8753067
docs(general): [Documentation] Guarantee Collision Events in Event Order
YYBartT Jun 26, 2024
95dc627
1
gurpreetsinghmatharoo Jun 27, 2024
b61a3d2
docs(general): Various dev/debug async dialog pages state it shouldn'…
YYBartT Jun 27, 2024
d7dfaf2
docs(general): .NET8 has changed where user settings are stored, we s…
YYBartT Jun 28, 2024
bb106a5
docs(general): added missing "Shaders" section under Drawing section …
YYBartT Jul 1, 2024
2ce079c
1
YYBartT Jul 1, 2024
5c30f36
docs(general): part_type_colour2() and ...3() incorrectly change the …
YYBartT Jul 2, 2024
6bf0d12
docs(general): replaced ampersand character with its HTML equivalent …
YYBartT Jul 2, 2024
b99606e
docs(general): removed remaining non-breaking space characters with t…
YYBartT Jul 2, 2024
145463b
1
gurpreetsinghmatharoo Jul 3, 2024
48b43c2
1
YYBartT Jul 3, 2024
c4fce79
1
YYBartT Jul 4, 2024
dd1619e
docs(general): update Shader Constants manual page
YYBartT Jul 4, 2024
d28ad87
docs(general): nameof() no longer works with enums and macros in 2024.6
YYBartT Jul 8, 2024
dfb69ee
1
YYBartT Jul 9, 2024
a3a2969
1
gurpreetsinghmatharoo Jul 11, 2024
957574d
1
gurpreetsinghmatharoo Jul 11, 2024
a7fd87d
docs(general): Clarification on what the Tile Set Confirm Dialogs pre…
gurpreetsinghmatharoo Jul 11, 2024
573e721
1
gurpreetsinghmatharoo Jul 11, 2024
2c66dee
1
gurpreetsinghmatharoo Jul 11, 2024
193d087
1
gurpreetsinghmatharoo Jul 11, 2024
23caef0
1
YYBartT Jul 11, 2024
33a49ae
1
gurpreetsinghmatharoo Jul 12, 2024
2fc6d1c
docs(general): updated hyperlink to cross-reference
YYBartT Jul 12, 2024
61f841a
1
YYBartT Jul 12, 2024
eef7aef
docs(general): added "read-only" tag for struct members
YYBartT Jul 12, 2024
6001c51
docs(general): Lists of variables inside various sequence related str…
YYBartT Jul 12, 2024
0f969e5
docs(general): fixed binary typo in bit shift example
YYBartT Jul 12, 2024
3b8f64c
docs(general): syntax error in sample code on Evaluation Order page
gurpreetsinghmatharoo Jul 16, 2024
62bd09d
1
gurpreetsinghmatharoo Jul 16, 2024
86c1132
docs(general): Audio buffers main page claims that Game Maker support…
gurpreetsinghmatharoo Jul 16, 2024
72ed3d2
docs(general): Page for audio_create_play_queue is incorrect about Au…
gurpreetsinghmatharoo Jul 16, 2024
8f4d8d8
1
YYBartT Jul 16, 2024
eab7aa9
docs(general): add YYBundleIdentifier to ext injection strings
gurpreetsinghmatharoo Jul 17, 2024
53c566a
docs(general): Empty NOTE section in Expressions And Operators page
gurpreetsinghmatharoo Jul 17, 2024
db834af
1
gurpreetsinghmatharoo Jul 17, 2024
42c895f
1
gurpreetsinghmatharoo Jul 18, 2024
70e5888
docs(general): Android: Extension compiler crash on valid tag injecti…
YYBartT Jul 18, 2024
3e2b062
1
gurpreetsinghmatharoo Jul 18, 2024
f7d0ebe
1
YYBartT Jul 19, 2024
319e7e7
docs(general): Erroneous text in diagram in Collision Mask section of…
gurpreetsinghmatharoo Jul 19, 2024
5c0168f
1
gurpreetsinghmatharoo Jul 19, 2024
b837a28
1
YYBartT Jul 19, 2024
83c6b6a
1
gurpreetsinghmatharoo Jul 31, 2024
d0fd5b3
docs(general): Manual Content: DS Grids page should not describe grid…
gurpreetsinghmatharoo Jul 31, 2024
1e57879
1
gurpreetsinghmatharoo Jul 31, 2024
fb70ee4
1
gurpreetsinghmatharoo Jul 31, 2024
49be8ad
docs(general): Clarify layer RMB properties regarding room inheritance
gurpreetsinghmatharoo Aug 1, 2024
85eeb34
1
gurpreetsinghmatharoo Aug 2, 2024
464c9ee
docs(general): CSS append fix for mobile issues:
gurpreetsinghmatharoo Aug 6, 2024
b29bb45
docs(general): Link scm preferences on scm page
gurpreetsinghmatharoo Aug 7, 2024
9f35ffe
1
gurpreetsinghmatharoo Aug 7, 2024
aeb04ff
1
gurpreetsinghmatharoo Aug 7, 2024
82b368b
1
gurpreetsinghmatharoo Aug 7, 2024
eaf22db
docs(general): Add hint onto Windows's Game Options - Images page tha…
gurpreetsinghmatharoo Aug 7, 2024
600a0a4
1
gurpreetsinghmatharoo Jan 16, 2024
8787db2
[Feature] Updated documentation for Gaussian Blur, adding details on …
gurpreetsinghmatharoo Jan 17, 2024
9ee28ad
1
gurpreetsinghmatharoo Aug 8, 2024
aab1847
docs(feature): Help Menu: Change "Create Your Contact Us Package" to …
YYBartT Aug 8, 2024
9cc6d51
1
gurpreetsinghmatharoo Aug 9, 2024
e28a90f
docs(lts): fixed images on licencing information page
gurpreetsinghmatharoo Aug 9, 2024
276f9be
docs(lts): remove hotkey chords, not in lts
gurpreetsinghmatharoo Aug 9, 2024
01c0f5b
docs(lts): add missing yyc page image
gurpreetsinghmatharoo Jul 19, 2024
1063cf4
docs(lts): removed fx that weren't added to lts
gurpreetsinghmatharoo Aug 9, 2024
d8f672b
docs(general): update help menu screenshot
gurpreetsinghmatharoo Aug 20, 2024
ea0243e
docs(general): Revert audio documentation to LTSr1
gurpreetsinghmatharoo Sep 10, 2024
4660568
fixes for lts build
ksuchitra532 Sep 10, 2024
d576327
Glossary colour fix
gurpreetsinghmatharoo Oct 3, 2024
a6c210a
docs(general): Removed static_get and static_set from LTS manual; als…
gurpreetsinghmatharoo Oct 17, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
6 changes: 3 additions & 3 deletions .github/workflows/lts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@ jobs:
name: "RoboHelp"
runs-on: windows-2019
steps:
- uses: aws-actions/configure-aws-credentials@v3
- uses: aws-actions/configure-aws-credentials@v4
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.REGION }}
- name: Enable git long paths to bypass path limit on Windows
run: git config --system core.longpaths true
- name: Check out the GMS2_Documentation repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
path: Manual
token: ${{ secrets.GH_TOKEN }}
Expand All @@ -31,7 +31,7 @@ jobs:
shell: cmd
working-directory: Manual
- name: Upload robohelp zip file
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: YoYoStudioRoboHelp
path: output\RoboHelp\*.zip
Expand Down
241 changes: 241 additions & 0 deletions Manual/GenerateKeyboardShortcutTableFromJson.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,241 @@
### Python script to generate copy-pasteable HTML tables from JSON file
###
### Provide the full directory path to the .json file as the command line argument.
### The output HTML file will also be placed there.
### For example: CMD > python GenerateKeyboardShortcutTableFromJson.py "C:/Users/Dev/Documents/GitHub/GameMaker-Manual/Manual/" -name_as_desc -env beta
###
### You can provide a few optional arguments:
###
### -name_as_desc: Add this to write the hotkey's name as the description.
### -env: Provide this, followed by the environment in which you want to look for the JSON file
### (one of: "dev", "lts", "beta", "prod")
### Note: only works on Windows!
### -update_rh_vars: Add this to update the RoboHelp variables
### A RH variable is written (or updated if exists) for every Win/Mac shortcut
### For example: Hotkey_Create_Asset_Win, Hotkey_Create_Asset_Mac
###
### Important: Technically, the JSON cannot contain trailing commas, this isn't supported
### using the built-in json module. Though it is supported through the yy_load function.
###

import sys
import os
import json
import re
from collections import OrderedDict

# Write to RoboHelp variables
import xml.etree.ElementTree as ET

# Unique modifier keys
mods = set()

def yy_load(file):
""" Load json from a file that possibly contains trailing commas """
# Do some tricky regex substitution
# so we can use the json module
data_string = ''.join(file.readlines())
data_string = re.sub("(,)(\s*[]}])","\g<2>", data_string)

# Now we can import using the json module
return json.loads(data_string)

# Utility functions
def get_combo_string(combo):
global mods
if not combo:
combo_string = ""
else:
modifier = [key for key in combo['Modifier'].split(", ") if key != "None"]
mods.update(modifier)
if type(combo['Keys']) is list:
# This is a hotkey chord
mods = " + ".join([*modifier])
combo_string = " => ".join([mods + " + " + key for key in combo['Keys']])
else:
# This is a regular hotkey
combo_string = " + ".join([*modifier, combo['Keys']])
return combo_string

# Default names
fname_hotkeys = "default_hotkeys.json"

install_dirs = {
"dev": "GameMaker-Dev",
"lts": "GameMaker-LTS",
"beta": "GameMaker-Beta",
"prod": "GameMaker"
}

# Handle parameters received from command line
if len(sys.argv) == 1:
print("ERROR - The input/output directory should be provided. Exiting...")
exit()
else:
out_dir = sys.argv[1]
in_dir = out_dir

# Whether to use the shortcut's name as the description
name_as_desc = "-name_as_desc" in sys.argv

# Whether to create new and/or update existing RH hotkey variables
write_update_rh_vars = "-update_rh_vars" in sys.argv

# Use an existing GM installation to get the JSON files, if provided
env = "out_dir"
if "-env" in sys.argv:
ind = sys.argv.index("-env")
env = sys.argv[ind+1]
in_dir = os.environ['ProgramFiles'] + os.sep + install_dirs[env]
if not os.path.isdir(in_dir):
# Revert to out_dir if there's no such directory
in_dir = out_dir

# Check if directories exist
if not os.path.isdir(in_dir) or not os.path.isdir(out_dir):
print("ERROR - One or more directories don't exist. Exiting...")
exit()

# Check if files exist
fpath_win = in_dir + os.sep + fname_hotkeys
if not os.path.isfile(fpath_win):
print("ERROR - Shortcuts file doesn't exist. Exiting...")
exit()

# Data structures
input = [] # input from file
shortcuts = dict() # maps shortcut name => shortcut data
shortcuts_per_location = OrderedDict() # stores shortcuts under locations

# Read the defaults file
with open(fpath_win, 'r', encoding="utf-8") as f:
# Load all the data
# input = json.load(f) # risk of errors if trailing commas are present
input = yy_load(f) # regex-replace variety that fixes things

# Add items under their respective locations (i.e. "group" per location)
for shortcut in input:
# Get unique name
name = shortcut['Name']

# Nothing to do for unlisted shortcuts?
#if 'IsUnlisted' in shortcut:
if 'IsListed' in shortcut and shortcut['IsListed'] == False:
continue

# Get this shortcut's combo(s)
cbo = shortcut['Combo']
combos = [cbo] if type(cbo) is not list else cbo
combo_strings = [get_combo_string(combo) for combo in combos]

# Store shortcut data (name as the key)
shortcuts[name] = {
"name": name,
"description": shortcut['Description'] if ('Description' in shortcut) else "",
"win_combo": combo_strings,
"mac_combo": []
# "Localisation": combo['Localisation']
}

# Store platform overrides, if there are any
if 'PlatformOverrides' in shortcut and shortcut['PlatformOverrides']:
for override in shortcut['PlatformOverrides']:
if override['Platform'] != 'MacOs':
continue
cbo = override['Combo']
combos = [cbo] if type(cbo) is not list else cbo
combo_strings = [get_combo_string(combo) for combo in combos]
shortcuts[name]['mac_combo'] = combo_strings

# Store name of shortcut under all its locations
loc = shortcut['Location']
locations = [loc] if (type(loc) == str) else loc

for location in locations:
# Make sure a list exists under the key before writing to it
if location not in shortcuts_per_location:
shortcuts_per_location[location] = OrderedDict()

# Add the shortcut
shortcuts_per_location[location][name] = name

# Generate HTML
html = ""
for location in shortcuts_per_location:
html += "<h2>{0}</h2>".format(location)
html += "<table>\n<tr><th>Windows Key Binding</th><th>macOS Key Binding</th><th>Scope</th><th>Description</th></tr>"

for name in shortcuts_per_location[location].keys():
sc = shortcuts[name]
desc = name if name_as_desc else sc['description']
html += "<tr>"
# html += "<td>" + name + "</td>"
html += "<td>" + "<br />".join(sc['win_combo']) + "</td>"
html += "<td>" + "<br />".join(sc['mac_combo']) + "</td>"
html += "<td>" + location + "</td>"
html += "<td>" + desc + "</td>"
html += "</tr>"

html += "</table>"

# Write to file
fpath_out = out_dir + "/" + "shortcuts.htm"
with open(fpath_out, 'w') as f:
f.write(html)

# Output unique keys
print("Shortcuts of environment " + str(env) + " written to file:")
print(fpath_out)

if not write_update_rh_vars:
print("Not writing RH variables. Exiting...")
exit()

# Optional: write to RH variables
fdir = os.getcwd() + os.sep + "variable"
fpath = fdir + os.sep + "Default.var"
tree = ET.parse(fpath)
root = tree.getroot()
vars = {}
for child in root:
# Skip title tag to avoid parsing issues
if child.tag == "title":
continue

# Reconstruct RH vars mapping
key = child.attrib["keys"]
val = child[0][0][0].text
vars[key] = val

# Update or append shortcuts
for sc in shortcuts:
readable_name = sc.replace("-", "")
readable_name = readable_name.replace("+", "And")

for platform in ["win", "mac"]:
suffix = "_" + platform.capitalize()
key_name = "Hotkey_" + readable_name.replace(" ", "_") + suffix
v = [tag for tag in root.findall('.//keydef[@keys]') if tag.attrib['keys'] == key_name]
sc_key_name = platform + '_combo'
text = ", ".join(shortcuts[sc][sc_key_name])

if v:
# The shortcut already exists!
# Update
e = v[0]
e[0][0][0].text = text
else:
# The shortcut is a new one for the RH variables.
# Create
e = ET.SubElement(root, "keydef", attrib = {"keys": key_name})
ec = ET.SubElement(e, "topicmeta")
ec2 = ET.SubElement(ec, "keywords")
ec3 = ET.SubElement(ec2, "keyword")
ec3.text = text

# Prettify XML to maintain line-by-line diffs
ET.indent(tree, space="\t")

tree.write(fpath, encoding='utf-8', xml_declaration=True)

print("RoboHelp variables updated.")
10 changes: 5 additions & 5 deletions Manual/_page_generation/Template_Code_Page.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<title>INSERT_TITLE</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<link rel="stylesheet" type="text/css" href="assets/css/default.css" />
<script src="assets/scripts/main_script.js"></script>
<meta name="rh-authors" content="INSERT_AUTHOR" />
<meta name="topic-comment" content="INSERT_DESCRIPTION" />
<script src="assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="" />
<meta name="topic-comment" content="" />
<meta name="rh-index-keywords" content="INSERT_INDEX" />
<meta name="search-keywords" content="INSERT_KEYWORDS" />
<meta name="template" content="assets/masterpages/Manual_Keyword_Page.htt" />
Expand All @@ -19,7 +19,7 @@ <h1><span data-field="title" data-format="default">INSERT_TITLE</span></h1>
<p>Additional Information Goes Here.</p>
<p> </p>
<h4>Syntax:</h4>
<p class="code">keyword_name(arguments);</p>
<p class="code"><span data-field="title" data-format="default"></span>(arguments);</p>
<table>
<colgroup>
<col />
Expand Down Expand Up @@ -53,7 +53,7 @@ <h4>Example:</h4>
<div class="footer">
<div class="buttons">
<div class="clear">
<div>Back: </div>
<div>Back: <a data-xref="{title}" href="section_index.htm">Section Index</a></div>
<div>Next: </div>
</div>
</div>
Expand Down
6 changes: 3 additions & 3 deletions Manual/_page_generation/Template_Normal_Page.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<title>INSERT_TITLE</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<link rel="stylesheet" href="assets/css/default.css" type="text/css" />
<script src="assets/scripts/main_script.js"></script>
<meta name="rh-authors" content="INSERT_AUTHOR" />
<meta name="topic-comment" content="INSERT_DESCRIPTION" />
<script src="assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="" />
<meta name="topic-comment" content="" />
<meta name="rh-index-keywords" content="INSERT_INDEX" />
<meta name="search-keywords" content="INSERT_KEYWORDS" />
<meta name="template" content="assets/masterpages/Manual_Page.htt" />
Expand Down
8 changes: 4 additions & 4 deletions Manual/_page_generation/Template_Visual_Page.htm
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
<title>INSERT_TITLE</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<link rel="stylesheet" type="text/css" href="assets/css/default.css" />
<script src="assets/scripts/main_script.js"></script>
<meta name="rh-authors" content="INSERT_AUTHOR" />
<meta name="topic-comment" content="INSERT_DESCRIPTION" />
<script src="assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="" />
<meta name="topic-comment" content="" />
<meta name="rh-index-keywords" content="INSERT_INDEX" />
<meta name="search-keywords" content="INSERT_KEYWORDS" />
<meta name="template" content="assets/masterpages/Manual_Keyword_Page.htt" />
Expand Down Expand Up @@ -42,7 +42,7 @@ <h4>Example:</h4>
<div class="footer">
<div class="buttons">
<div class="clear">
<div>Back: </div>
<div>Back: <a data-xref="{title}" href="section_index.htm">Section Index</a></div>
<div>Next: </div>
</div>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,20 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Additional Information</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../assets/css/default.css" type="text/css" />
<script src="../assets/scripts/main_script.js"></script>
<script src="../assets/scripts/main_script.js" type="module"></script>
<meta name="rh-authors" content="Mark Alexander" />
<meta name="topic-comment" content="Page with additional information about programming features" />
<meta name="rh-index-keywords" content="Additional Information" />
<meta name="search-keywords" content="Additional Information" />
</head>
<body>
<!--<div class="body-scroll" style="top: 150px;">-->
<h1>Additional Information</h1>
<p>This section of the manual contain a collection of miscellaneous articles related to programming and the way the GameMaker Language works. The following articles are designed as companion articles to further expand your understanding of how GameMaker works and how to get the most from the different language features available:</p>
<h1><span data-field="title" data-format="default">Additional Information</span></h1>
<p>This section of the manual contain a collection of miscellaneous articles related to programming and the way the GameMaker Language works. The following articles are designed as companion articles to further expand your understanding of how <span data-keyref="GameMaker Name">GameMaker</span> works and how to get the most from the different language features available:</p>
<ul class="colour">
<li><a href="Best_Practices_When_Programming.htm">Best Practices When Programming</a></li>
<li><a href="The_File_System.htm">The File System</a></li>
<li><a href="Bitwise_Operators.htm">Bitwise Operators</a></li>
<li><a href="Type_Tables.htm">Type Tables</a></li>
<li><a data-xref="{title}" href="Whitespace_Characters.htm">White-space Characters</a></li>
Expand All @@ -28,21 +27,22 @@ <h1>Additional Information</h1>
<li><a href="Guide_To_Using_Shaders.htm">Guide To Using Shaders</a></li>
<li><a href="Guide_To_Primitives_And_Vertex_Building.htm">Guide To Primitives And Vertex Building</a></li>
<li><a href="Guide_To_Using_Blendmodes.htm">Guide To Using Blendmodes</a></li>
<li><a data-xref="{title}" href="Project_Format.htm">Project Format</a></li>
<li><a href="Compatibility_Functions.htm">Compatibility Functions</a></li>
<li><a href="Compatibility_Scripts.htm">Compatibility Scripts</a></li>
<li><a href="Obsolete_Functions.htm">Obsolete Functions</a></li>
<li><a data-xref="{title}" href="../Introduction/The_Marketplace.htm">The Marketplace</a></li>
</ul>
<p> </p>
<p> </p>
<p> </p>
<div class="footer">
<div class="buttons">
<div class="clear">
<div style="float:left">Back: <a href="../Content.htm">Index</a></div>
<div style="float:right">Next: <a data-xref="{text}" href="../GameMaker_Language.htm#h">GameMaker Language</a></div>
</div>
</div>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2022 All Rights Reserved</span></h5>
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
Additional Information
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ <h1>Compile Errors</h1>
</tr>
<tr>
<td>Calling a function that needs an instance and no instance is available</td>
<td><span>The function or script being called is for acting on an instance, but at the time of running no instances exist</span></td>
<td>The function or script being called is for acting on an instance, but at the time of running no instances exist</td>
</tr>
<tr>
<td>Calling a function that needs an other and no other is available</td>
Expand Down
Loading