Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
192 changes: 95 additions & 97 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,114 +1,112 @@
name: "Build RPG++"

on:
push:
branches: ["main", "ci-cd"]
pull_request:
branches: ["main", "ci-cd"]
schedule:
- cron: "19 2 * * 1"
workflow_dispatch:
push:
branches: ["main"]
pull_request:
branches: ["main"]
workflow_dispatch:

env:
BUILD_DIR: build
RETENTION_DAYS: 7
BUILD_TYPE: debug
BUILD_DIR: build
RETENTION_DAYS: 7
BUILD_TYPE: debug

jobs:
build-linux:
name: "build: linux"
runs-on: 'ubuntu-latest'
env:
PLATFORM: linux
ARCH: x86_64
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
build-linux:
name: "build: linux"
runs-on: "ubuntu-latest"
env:
PLATFORM: linux
ARCH: x86_64
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive

- name: Install packages
shell: bash
run: |
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt-get update
sudo apt-get install -y \
libx11-dev \
libxrandr-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
libgl1-mesa-dev \
mesa-common-dev \
xmake
- name: Install packages
shell: bash
run: |
sudo add-apt-repository ppa:xmake-io/xmake
sudo apt-get update
sudo apt-get install -y \
libx11-dev \
libxrandr-dev \
libxinerama-dev \
libxcursor-dev \
libxi-dev \
libgl1-mesa-dev \
mesa-common-dev \
xmake

- name: Build
shell: bash
run: |
xmake build --all -y
- name: Build
shell: bash
run: |
xmake build --all -y

- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: linux-build
path: ${{ env.BUILD_DIR }}/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.BUILD_TYPE }}/ # adjust to your xmake output path
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}
build-windows:
name: "build: windows"
runs-on: windows-latest
env:
PLATFORM: windows
ARCH: x64
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: linux-build
path: ${{ env.BUILD_DIR }}/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.BUILD_TYPE }}/ # adjust to your xmake output path
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}
build-windows:
name: "build: windows"
runs-on: windows-latest
env:
PLATFORM: windows
ARCH: x64
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive

- name: Install xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest
- name: Install xmake
uses: xmake-io/github-action-setup-xmake@v1
with:
xmake-version: latest

- name: Build
shell: pwsh
run: xmake build --all -y
- name: Build
shell: pwsh
run: xmake build --all -y

- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: windows-build
path: ${{ env.BUILD_DIR }}/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.BUILD_TYPE }}/
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: windows-build
path: ${{ env.BUILD_DIR }}/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.BUILD_TYPE }}/
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}

build-macos:
name: "build: macos"
runs-on: macos-latest
env:
PLATFORM: macosx
ARCH: arm64
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
build-macos:
name: "build: macos"
runs-on: macos-latest
env:
PLATFORM: macosx
ARCH: arm64
steps:
- name: Checkout repository
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive

- name: Install xmake
uses: xmake-io/github-action-setup-xmake@v1
- name: Install xmake
uses: xmake-io/github-action-setup-xmake@v1

- name: Build
shell: bash
run: xmake build --all -y
- name: Build
shell: bash
run: xmake build --all -y

- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: macos-build
path: ${{ env.BUILD_DIR }}/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.BUILD_TYPE }}/
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}
- name: Upload artifact
uses: actions/upload-artifact@v6
with:
name: macos-build
path: ${{ env.BUILD_DIR }}/${{ env.PLATFORM }}/${{ env.ARCH }}/${{ env.BUILD_TYPE }}/
if-no-files-found: error
retention-days: ${{ env.RETENTION_DAYS }}
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
![logo](docs/logo.png)
![logo](readme/logo.png)
---
[![Build RPG++](https://github.com/rpgppengine/rpgpp/actions/workflows/build.yml/badge.svg)](https://github.com/rpgppengine/rpgpp/actions/workflows/build.yml)

RPG++ is an experimental 2D RPG game engine written in C++. It is currently in early development, but contributions are welcome!

<img src="docs/readme_img1.png" alt="screenshot of engine" width="640">
<img src="readme/readme_img1.png" alt="screenshot of engine" width="640">

Requirements
---
Expand Down
16 changes: 0 additions & 16 deletions docs/building.md

This file was deleted.

15 changes: 0 additions & 15 deletions docs/index.md

This file was deleted.

16 changes: 0 additions & 16 deletions docs/javascripts/mathjax.js

This file was deleted.

6 changes: 0 additions & 6 deletions docs/javascripts/tablesort.js

This file was deleted.

17 changes: 0 additions & 17 deletions docs/overrides/partials/copyright.html

This file was deleted.

58 changes: 0 additions & 58 deletions docs/stylesheets/doxide.css

This file was deleted.

4 changes: 1 addition & 3 deletions include/editor/childWindows/aboutWindow.hpp
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
#ifndef RPGPP_ABOUTWINDOW_H
#define RPGPP_ABOUTWINDOW_H

#include "TGUI/Widgets/Label.hpp"
#include "childWindows/popupWindow.hpp"
#include <string>
class AboutWindow : public PopupWindow {
public:
AboutWindow(const std::string &title);
AboutWindow();
};

#endif /* RPGPP_ABOUTWINDOW_H */
25 changes: 25 additions & 0 deletions include/editor/childWindows/settingsPanel/base.hpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#ifndef RPGPP_SETTINGSPANEL_BASE_H
#define RPGPP_SETTINGSPANEL_BASE_H

#include "TGUI/Widgets/Panel.hpp"
#include "TGUI/Widgets/TabContainer.hpp"
#include "bindTranslation.hpp"
#include "services/translationService.hpp"

class SettingsPanelBase {
protected:
tgui::Panel::Ptr panel;

public:
SettingsPanelBase(tgui::TabContainer::Ptr tabContainer, std::string name) {
panel = tabContainer->addTab(name);
bindCustomTranslation<tgui::TabContainer>(
tabContainer, [this, name](tgui::TabContainer::Ptr tabContainer,
TranslationService &ts) {
int idx = tabContainer->getIndex(panel);
tabContainer->changeTabText(idx, ts.getKey(name));
});
}
};

#endif
Loading
Loading