generated from YimMenu/YimMenuV2
-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into pointer-cache
- Loading branch information
Showing
209 changed files
with
17,474 additions
and
1,648 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
# HorseMenu | ||
|
||
A trainer for the popular horse riding game from Rockstar Games. | ||
A mod menu for Red Dead Redemption 2 and Red Dead Online published by Rockstar Games. Strictly for educational purposes. | ||
|
||
## How to use | ||
Use a popular injector (FateInjector/Xenos/Etc.) and inject into rdr2.exe | ||
|
||
(INSERT) Open/Close the menu | ||
|
||
## Structure | ||
|
||
- `core/` : Essential general features for the base | ||
- `game/` : Game specific implemented things | ||
- `util/` : Loose functions that aren't game specific | ||
|
||
**Current Look (Outdated)** | ||
## Screenshots / UI Design | ||
|
||
 | ||
|
||
|
||
 | ||
 | ||
 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
#include "FloatCommand.hpp" | ||
#include "game/backend/FiberPool.hpp" // TODO: game import in core | ||
|
||
namespace YimMenu | ||
{ | ||
void FloatCommand::OnCall() | ||
{ | ||
} | ||
|
||
void FloatCommand::SaveState(nlohmann::json& value) | ||
{ | ||
value = m_State; | ||
} | ||
|
||
void FloatCommand::LoadState(nlohmann::json& value) | ||
{ | ||
m_State = value; | ||
} | ||
|
||
FloatCommand::FloatCommand(std::string name, std::string label, std::string description, std::optional<float> min, std::optional<float> max, float def_val) : | ||
Command(name, label, description, 0), | ||
m_Min(min), | ||
m_Max(max), | ||
m_State(def_val) | ||
{ | ||
} | ||
|
||
float FloatCommand::GetState() | ||
{ | ||
return m_State; | ||
} | ||
|
||
void FloatCommand::SetState(float state) | ||
{ | ||
FiberPool::Push([this] { | ||
OnChange(); | ||
}); | ||
m_State = state; | ||
MarkDirty(); | ||
} | ||
|
||
std::optional<float> FloatCommand::GetMinimum() | ||
{ | ||
return m_Min; | ||
} | ||
|
||
std::optional<float> FloatCommand::GetMaximum() | ||
{ | ||
return m_Max; | ||
} | ||
} |
Oops, something went wrong.