This repository has been archived by the owner on Feb 4, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Readd Profit tab and improve existing Commodities intel (#85)
- Rework Commodity intel look and feel. - Readd cleaner implementation of Profit tab (again, thanks to @isthiscodefluffy). - Show message dialog when uninstalling the mod.
- Loading branch information
Showing
129 changed files
with
1,485 additions
and
1,139 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
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,4 @@ | ||
id | ||
corvus_abandoned_station | ||
yma_abandoned_station | ||
mairaath_abandoned_station1 |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"BUY": "Buy", | ||
"SELL": "Sell" | ||
"SELL": "Sell", | ||
"PROFIT": "Profit" | ||
} |
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,4 @@ | ||
{ | ||
"BOARD_DESCRIPTION": "Find best trade opportunities within and across systems.", | ||
"BOARD_TITLE": "Trade Opportunities" | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,32 +1,51 @@ | ||
package stelnet; | ||
|
||
import com.fs.starfarer.api.BaseModPlugin; | ||
import com.fs.starfarer.api.Global; | ||
import com.fs.starfarer.api.campaign.CampaignUIAPI; | ||
import com.fs.starfarer.api.impl.campaign.tutorial.TutorialMissionIntel; | ||
import stelnet.util.ConfigConstants; | ||
import stelnet.util.ConfigUtils; | ||
import stelnet.util.ReportUtils; | ||
import stelnet.util.Configurator; | ||
import stelnet.util.Reporter; | ||
|
||
public class StelnetMod extends BaseModPlugin { | ||
|
||
@Override | ||
public void afterGameSave() { | ||
if (ConfigConstants.UNINSTALL_MOD) { | ||
showUninstalledDialog(); | ||
} | ||
} | ||
|
||
@Override | ||
public void beforeGameSave() { | ||
if (ConfigConstants.UNINSTALL_MOD) { | ||
ConfigUtils.deactivate(); | ||
Configurator.deactivate(); | ||
} | ||
} | ||
|
||
@Override | ||
public void onApplicationLoad() throws Exception { | ||
ReportUtils.generate(); | ||
ConfigUtils.configure(); | ||
Reporter.generate(); | ||
Configurator.configure(); | ||
} | ||
|
||
@Override | ||
public void onGameLoad(boolean newGame) { | ||
if (TutorialMissionIntel.isTutorialInProgress()) { | ||
ConfigUtils.deactivate(); | ||
Configurator.deactivate(); | ||
return; | ||
} | ||
Configurator.activate(); | ||
} | ||
|
||
private void showUninstalledDialog() { | ||
CampaignUIAPI campaignUi = Global.getSector().getCampaignUI(); | ||
if (campaignUi == null) { | ||
return; | ||
} | ||
ConfigUtils.activate(); | ||
campaignUi.showMessageDialog( | ||
"Stellar Networks has been removed from this save. You can now update (or disable) this mod." | ||
); | ||
} | ||
} |
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
Oops, something went wrong.