Comments (3)
manually disable controls, because NativeUI breaks Rockstar Editor recording when it disables controls
With that comment, I have a couple of ideas in my mind and I'm probably going to end up implementing all of them to provide flexibility:
- Adding the
ControlDisablingEnabled
property (probably going to call it justDisableControls
) - A list on a property that will keep some controls enabled, as required by the mod developer (
RequiredControls
) - Keep the Rockstar Editor controls enabled as normal (probably going to need your help with this one)
from lemonui.
Done!
Feel free to check the linked commits for more information.
from lemonui.
Keep the Rockstar Editor controls enabled as normal (probably going to need your help with this one)
The only way I could fix it for NativeUI is to use a blacklist for controls instead of a whitelist. Same as LemonUI, NativeUI disables all controls then re-enables some of them. When the Rockstar Editor controls are disabled (i.e. when all controls are disabled) recording gets cancelled. So I had to instead only disable the controls I wanted to.
You can see my blacklist here: https://gitlab.com/Jitnaught/ropecreator-gta5/-/blob/master/RopeCreator/Menu.cs#L13
from lemonui.
Related Issues (20)
- Replace Game.GameTime with GET_GAME_TIMER in RPH HOT 3
- Make sure that the LemonUI.RageMP.cs is included in the NuGet Package
- SubtitleFont is missing in 1.9.4+
- Submenu not displaying? HOT 3
- FiveM : Unable to use Exports when using LemonUI HOT 5
- Trying to move up or down in a menu with only separators will make the game hang HOT 2
- NativeItem's for selecting common types of values
- ForEach should raise an exception if the type is not compatible with the pool
- Add default constructors for NativeItem's that only take a Title and/or Description
- NativeItem.UpdateColors overrides don't properly call the parent UpdateColors function HOT 2
- NativeItem.Draw overrides don't draw the custom background HOT 1
- Documentation inclusion HOT 2
- FixIndexIfRequired in NativeListItem<T> might set the index under zero and cause an exception
- Typo in parameter of NativeMenu constructor HOT 1
- When using gamepad games, the icons of InstructionalButtons are still keyboard keys.
- Timer Bar Objectives Bug
- Implement SET_TEXT_DROPSHADOW in ScaledText HOT 2
- ScaledAnim does not has an override for DrawSpecific(PointF, PointF)
- Newer .NET versions require PackageReadmeFile to be explicitly set
- SET_TEXT_DROPSHADOW does the same thing as SET_TEXT_DROP_SHADOW HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lemonui.