An open API service indexing awesome lists of open source software.

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

Awesome Lists containing this project

README

          

# gm_ultralight ![.NET Core](https://github.com/SupinePandora43/gm_ultralight/workflows/.NET%20Core/badge.svg)

[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