Skip to content

Commit

Permalink
update readme + fix dumb mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
us3rT0m committed Jul 4, 2023
1 parent 4b4341a commit 5772cc9
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 7 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt.user
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE QtCreatorProject>
<!-- Written by QtCreator 10.0.1, 2023-07-04T03:27:20. -->
<!-- Written by QtCreator 10.0.1, 2023-07-04T18:20:24. -->
<qtcreator>
<data>
<variable>EnvironmentId</variable>
Expand Down
10 changes: 9 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,14 @@ This project is for speedrunners. The principle is simple. You can create checkp
- Teleport to checkpoints
- Create a key for fast teleportation
- Reset dragon position
- Changing the speed of the dragon
- freeze dragon position
- Fun mode : big jump
- Can fly
- Change fps
- English translation
- Chinese translation
- Japanese translation



## How to use
Expand All @@ -34,6 +41,7 @@ This project is for speedrunners. The principle is simple. You can create checkp
## Contribution

Contributions are always welcome!
Contact us before working on a feature to ask if we are not already on it


## License
Expand Down
Binary file modified demo.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 1 addition & 2 deletions mainwindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ MainWindow::MainWindow(QWidget *parent)

// Select current language
QString currentLang = config.get("lang");
// qDebug() << "Current lang: " << currentLang;
int index = ui->languageSelector->findData(currentLang);
if (index != -1) {
ui->languageSelector->setCurrentIndex(index);
Expand Down Expand Up @@ -309,6 +308,7 @@ void MainWindow::displayFps(float fps){
void MainWindow::on_pushButton_init_clicked()
{
if(!positionManager.init()){
game_window = positionManager.getGameWindow();
positionManager.loadPos();
displayPositions();
firstDisplayFps();
Expand Down Expand Up @@ -409,7 +409,6 @@ LRESULT CALLBACK MainWindow::LowLevelKeyboardProc(int nCode, WPARAM wParam, LPAR
break;
}
}else if (MainWindow::instance->positionManager.getFlyHack()) {
qDebug() << pKeyStruct->vkCode;
if (pKeyStruct->vkCode == 81) {
MainWindow::instance->positionManager.updateVelocity(0, 0, -speed);
if (MainWindow::instance->accelerationFactor < MainWindow::instance->maxAccelerationFactor) {
Expand Down
6 changes: 3 additions & 3 deletions positionmanager.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,7 @@ int PositionManager::findGameWindow(){
game_window = FindWindow(NULL, L"OnlyUP ");
// Vérifie si la fenêtre du jeu a été trouvée. Si ce n'est pas le cas, affiche un message d'erreur et termine le programme.
if (!game_window) {
// Affichage du message d'erreur dans une boîte de dialogue
QMessageBox::critical(nullptr, "Erreur", "Impossible de trouver la fenêtre du jeu.");
return 1;
return 1;
}
return 0;
}
Expand All @@ -61,6 +59,8 @@ HWND PositionManager::getGameWindow(){
int PositionManager::init() {

if(findGameWindow()){
// Affichage du message d'erreur dans une boîte de dialogue
QMessageBox::critical(nullptr, "Erreur", "Impossible de trouver la fenêtre du jeu.");
return 1;
}

Expand Down

0 comments on commit 5772cc9

Please sign in to comment.