-
Notifications
You must be signed in to change notification settings - Fork 76
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'gui-rewrite' into nordale
- Loading branch information
Showing
14 changed files
with
788 additions
and
361 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Immersive Railroading Build Pipeline | ||
|
||
on: | ||
push: | ||
branches-ignore: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
branch: [1.12.2-forge, 1.16.5-forge] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: keyscan | ||
run: mkdir -p ~/.ssh/ && ssh-keyscan -t rsa teamopenindustry.cc >> ~/.ssh/known_hosts | ||
- name: Install deps | ||
run: sudo apt install -y pngquant findutils xvfb | ||
- name: Setup Universal Mod Core (and helpers) | ||
env: | ||
BRANCH: ${{ matrix.branch }} | ||
run: java -jar UMCSetup.jar ${BRANCH} https | ||
- name: Gradle compile | ||
run: ./gradlew classes | ||
- name: Process images | ||
run: find src/main/resources/assets/immersiverailroading/ | grep png | xargs -I foo pngquant -s1 -f --ext .png foo | ||
- name: Run Data (optionalish) | ||
run: xvfb-run --auto-servernum ./gradlew runData || xvfb-run --auto-servernum ./gradlew runData || true | ||
- name: Gradle build | ||
run: ./gradlew build | ||
- name: Gradle publish | ||
env: | ||
MAVENCI_PASS: ${{ secrets.MAVENCI_PASS }} | ||
run: ./gradlew publish | ||
- uses: actions/upload-artifact@v2 | ||
with: | ||
name: Immersive Railroading ${{matrix.branch}} | ||
path: build/libs/ImmersiveRailroading-${{matrix.branch}}-* |
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,6 +1,9 @@ | ||
name: Immersive Railroading Build Pipeline | ||
|
||
on: [push] | ||
on: | ||
push: | ||
branches: | ||
- 'master' | ||
|
||
jobs: | ||
build: | ||
|
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
163 changes: 86 additions & 77 deletions
163
src/main/resources/assets/immersiverailroading/gui/default/cab_car.caml
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,80 +1,89 @@ | ||
element: | ||
# left panel | ||
x = 10 | ||
y = -95 | ||
image = "immersiverailroading:gui/overlay_handcar.png" | ||
element: | ||
# ind brake | ||
x = 17 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "INDEPENDENT_BRAKE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# brake pressure | ||
x = 11 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "BRAKE_PRESSURE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
color = | ||
0.0 = "0xDDa22020" | ||
element: | ||
# train brake | ||
x = 11 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "TRAIN_BRAKE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# throttle | ||
x = 32 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "THROTTLE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# reverser | ||
x = 38 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "REVERSER" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# speed readout | ||
text = | ||
value = "stat.speed" | ||
height = 6 | ||
x = 30 | ||
y = 8 | ||
element: | ||
# top labels | ||
y = 19 | ||
element: | ||
x = 20 | ||
text = | ||
value = "label.brake" | ||
height = 4 | ||
element: | ||
x = 38 | ||
text = | ||
value = "label.throttle" | ||
height = 4 | ||
import: "immersiverailroading:gui/default/common/settings.caml" | ||
|
||
element: | ||
import: "immersiverailroading:gui/default/common/opacity.caml" | ||
element: | ||
# bottom labels | ||
y = 78 | ||
import: "immersiverailroading:gui/default/common/scale.caml" | ||
screen_x = LEFT | ||
screen_y = BOTTOM | ||
element: | ||
x = 38 | ||
text = | ||
value = "label.reverser" | ||
height = 4 | ||
# left panel | ||
x = 10 | ||
y = -95 | ||
image = "immersiverailroading:gui/overlay_handcar.png" | ||
element: | ||
# ind brake | ||
x = 17 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "INDEPENDENT_BRAKE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# brake pressure | ||
x = 11 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "BRAKE_PRESSURE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
color = | ||
0.0 = "0xDDa22020" | ||
element: | ||
# train brake | ||
x = 11 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "TRAIN_BRAKE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# throttle | ||
x = 32 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "THROTTLE" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# reverser | ||
x = 38 | ||
y = 74 | ||
image = "immersiverailroading:gui/indicator.png" | ||
readout = "REVERSER" | ||
translate = | ||
x = 0 | ||
y = -50 | ||
element: | ||
# speed readout | ||
text = | ||
value = "stat.speed" | ||
height = 6 | ||
x = 30 | ||
y = 8 | ||
element: | ||
# top labels | ||
y = 19 | ||
element: | ||
x = 20 | ||
text = | ||
value = "label.brake" | ||
height = 4 | ||
element: | ||
x = 38 | ||
text = | ||
value = "label.throttle" | ||
height = 4 | ||
element: | ||
# bottom labels | ||
y = 78 | ||
element: | ||
x = 38 | ||
text = | ||
value = "label.reverser" | ||
height = 4 |
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
Oops, something went wrong.