Skip to content

Commit

Permalink
v1.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
radmanplays committed Mar 2, 2024
1 parent 3067cad commit a7d187a
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 0 deletions.
2 changes: 2 additions & 0 deletions docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@ export default defineConfig({
{ text: 'RemotePlayerData', link: '/apidocs/globals/RemotePlayerData' },
{ text: 'PlayerCapabilities', link: '/apidocs/globals/PlayerCapabilities' },
{ text: 'ModAPI.require(String componentName)', link: '/apidocs/globals/require' },
{ text: 'emptygui', link: '/apidocs/globals/emptygui' },
{ text: 'ScaledResolution', link: '/apidocs/globals/ScaledResolution' },
{ text: 'BlockData', link: '/apidocs/globals/BlockData' },
{ text: 'ChunkData', link: '/apidocs/globals/ChunkData' },
{ text: 'ContainerData', link: '/apidocs/globals/ContainerData' },
Expand Down
10 changes: 10 additions & 0 deletions docs/apidocs/globals/ScaledResolution.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# ScaledResolution
for getting the scaled screen resolution. can be accessed from ModAPI.ScaledResolution.(method)


It has the following methods:
- `getScaledWidth()`
- `getScaledHeight()`
- `getScaledWidth_double()`
- `getScaledHeight_double()`
- `getScaleFactor()`
11 changes: 11 additions & 0 deletions docs/apidocs/globals/emptygui.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# EmptyGUI
for displaying html gui on top of it. can be accessed from ModAPI.emptygui.(method/properties)

Has the following properties:

- `drawdefaultbg : boolean`

It has the following methods:
- `DisplayGUI() : Void`
- `CloseGUI() : Void`
- `isInitialized() : boolean`
4 changes: 4 additions & 0 deletions docs/apidocs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,14 @@ It has the following methods:
- Triggers a right click ingame.
- `getFPS()`
- returns the current fps
- `currentScreen()`
- returns the current screen as a string
- `getdisplayHeight()`
- returns screen height
- `getdisplayWidth()`
- returns screen width
- `getFONT_HEIGHT()`
- returns the FONT_HEIGHT
- `drawStringWithShadow({msg: String, x: Integer, y: Integer, color: Integer})`
- draws your string to screen and needs to be ran when the `drawhud` event is called. the color parameter needs be hex but # is replaced with 0x
- `drawString({msg: String, x: Integer, y: Integer, color: Integer})`
Expand Down

0 comments on commit a7d187a

Please sign in to comment.