https://github.com/supinepandora43/gm_ultralight
Ultralight in gmod
https://github.com/supinepandora43/gm_ultralight
addon awesomium chromium cpp dll garry-s-mod garrys-mod garrysmod gmod library lua so steam ultralight workshop
Last synced: 7 months ago
JSON representation
Ultralight in gmod
- Host: GitHub
- URL: https://github.com/supinepandora43/gm_ultralight
- Owner: SupinePandora43
- License: mit
- Created: 2020-05-26T01:44:04.000Z (over 5 years ago)
- Default Branch: sharp
- Last Pushed: 2022-12-08T11:35:01.000Z (almost 3 years ago)
- Last Synced: 2025-03-28T23:04:16.562Z (8 months ago)
- Topics: addon, awesomium, chromium, cpp, dll, garry-s-mod, garrys-mod, garrysmod, gmod, library, lua, so, steam, ultralight, workshop
- Language: C#
- Homepage:
- Size: 69.1 MB
- Stars: 10
- Watchers: 2
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# gm_ultralight 
[Ultralight](https://github.com/ultralight-ux/Ultralight) gmod integration
uses [Gmod.Net](https://github.com/GmodNET/GmodDotNet/) (why? for easier development :D)
# WIP
* Crashes on 2nd load - FIX in ultralight 1.3 (IPC)
* use ISurface - help,help,help,help,help,help,help,help,help,help,help,help,help,help,help,help,help - GmodDotNet 2.0
# Api
## Ultralight
### Render()
renders all views (required to drawing them)
### Update()
updates network, scripts etc, run much as you can!
### CreateView(width, height, transparent)
uint width
uint height
bool transparent
# Examples
## test.lua
`test.lua`
# Covered API
- [x] - done
- @ - internal use
- x - almost done
- [ ] - not done
* [x] `view.EvaluateScript`
* x `SetFinishLoadingCallback`
* [x] `view.LoadUrl`
* [x] `view.LoadHtml`
* [x] `view.FireMouseEvent`
* [x] `view.FireKeyEvent`
* [x] `view.FireScrollEvent`
* @ `surface.GetDirtyBounds`
* @ `bitmap.LockPixels` in GetPixel
# Contributors
[SupinePandora43](https://github.com/SupinePandora43)
[GlebChili](https://github.com/GlebChili)
**`NULL`@`mijyuoon#6666`** - [`vgui::ISurface->DrawSetTextureRGBA`](https://discord.com/channels/565105920414318602/565108080300261398/723218859322114161)
**`Eclipse`@`Eclipse#2437`** - [`Sys_LoadInterface("vguimatsurface", "VGUI_Surface030", NULL, (void**)&surface)`](https://discord.com/channels/565105920414318602/567672652714475530/723205466838270024)
[Uros Spasojevic](https://app.slack.com/client/TC4C8F4CT/CC492VBLL/user_profile/ULE28P1AL) - uint8_t