Skip to content
This repository has been archived by the owner on Jan 4, 2024. It is now read-only.

Commit

Permalink
small bcsv editor fix, also auto build is broken atm
Browse files Browse the repository at this point in the history
  • Loading branch information
SunakazeKun committed Apr 24, 2022
1 parent 7d25add commit 7f0e243
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 76 deletions.
50 changes: 0 additions & 50 deletions .github/workflows/ant.yml

This file was deleted.

37 changes: 21 additions & 16 deletions src/whitehole/editor/BcsvEditorForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -40,25 +40,30 @@ public BcsvEditorForm() {
}

private void toggleShortcutVisibility() {
if (Whitehole.getCurrentGameType() == 1) {
boolean isSmg1 = Whitehole.getCurrentGameType() == 1;

sep1.setVisible(!isSmg1);
mnuUseResource.setVisible(!isSmg1);
mnuAudio.setVisible(!isSmg1);
mnuSystem.setVisible(!isSmg1);
subGalaxyInfo.setVisible(!isSmg1);
subProductMapObjData.setVisible(!isSmg1);
subWorldMapCamera.setVisible(!isSmg1);
subKinopioBank.setVisible(!isSmg1);
subPeach.setVisible(!isSmg1);
subTicoFatCoin.setVisible(!isSmg1);
subTicoFatStarPiece.setVisible(!isSmg1);
subTicoShopDice.setVisible(!isSmg1);
mniObjectInfluenceTable.setVisible(!isSmg1);
mniRushInfluenceTable.setVisible(!isSmg1);
mniMorphConditionTable.setVisible(!isSmg1);
subAstroNamePlateData.setVisible(isSmg1);

if (isSmg1) {
tbArchiveName.setText("/StageData/CocoonExGalaxy/CocoonExGalaxyScenario.arc");
tbFileName.setText("/CocoonExGalaxyScenario/ScenarioData.bcsv");

sep1.setVisible(false);
mnuUseResource.setVisible(false);
mnuAudio.setVisible(false);
mnuSystem.setVisible(false);

subGalaxyInfo.setVisible(false);
subProductMapObjData.setVisible(false);
subWorldMapCamera.setVisible(false);
subKinopioBank.setVisible(false);
subPeach.setVisible(false);
subTicoFatCoin.setVisible(false);
subTicoFatStarPiece.setVisible(false);
subTicoShopDice.setVisible(false);
}
else if (Whitehole.getCurrentGameType() == 2) {
else if (isSmg1) {
tbArchiveName.setText("/StageData/RedBlueExGalaxy/RedBlueExGalaxyScenario.arc");
tbFileName.setText("/RedBlueExGalaxyScenario/ScenarioData.bcsv");

Expand Down
3 changes: 2 additions & 1 deletion src/whitehole/editor/GalaxyEditorForm.java
Original file line number Diff line number Diff line change
Expand Up @@ -1387,10 +1387,11 @@ private void layerSelectChange(int index, boolean status) {

private void formWindowClosing(java.awt.event.WindowEvent evt)//GEN-FIRST:event_formWindowClosing
{//GEN-HEADEREND:event_formWindowClosing
if(isGalaxyMode) {
if (isGalaxyMode) {
for(GalaxyEditorForm form : zoneEditors.values())
form.dispose();
}

if(!isGalaxyMode)
return;

Expand Down
15 changes: 6 additions & 9 deletions src/whitehole/rendering/CubeRenderer.java
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ public void render(RenderInfo info) throws GLException {
GL2 gl = info.drawable.getGL().getGL2();

if (info.renderMode != RenderMode.PICKING) {
for (int i = 0; i < 8; i++) {
try {
if(gl.isFunctionAvailable("glActiveTexture")) {
if (gl.isFunctionAvailable("glActiveTexture")) {
for (int i = 0; i < 8; i++) {
try {
gl.glActiveTexture(GL2.GL_TEXTURE0 + i);
gl.glDisable(GL2.GL_TEXTURE_2D);
}
gl.glDisable(GL2.GL_TEXTURE_2D);
catch (GLException ex) {}
}
catch (GLException ex) {}
}

gl.glDisable(GL2.GL_TEXTURE_2D);
Expand All @@ -102,10 +102,7 @@ public void render(RenderInfo info) throws GLException {
gl.glDisable(GL2.GL_BLEND);
gl.glDisable(GL2.GL_COLOR_LOGIC_OP);
gl.glDisable(GL2.GL_ALPHA_TEST);
try {
gl.glUseProgram(0);
}
catch (GLException ex) {}
gl.glUseProgram(0);
}

// Draw the actual cube
Expand Down

0 comments on commit 7f0e243

Please sign in to comment.