[Summary]
Use the Tips section of the GUI to load helpful tips in the preferred language for the user.
The tips can consist, but not limited to the following:
[1] The selected class' ranking on all stats.
[2] Recommendations based on the class' stat ranking.
[3] Provide an explanation or a "break down" of the class' stats in details.
This section should be able to provide access to PDF or HTML files residing in the project's lang directory.
See the example below on how the lang files should be set up.
[Example]
[GENERAL]
SKILL = [SKILL ENHANCEMENT] Starting at 4 INT, every class gets 3 Skill Enh. for every 4 INT, otherwise they receive 2 Skill Enh.
DEBUFF = [INCREASE DEBUFF TIME] Starting at 3 SPI, every class gets .002 sec(s) for every 5 SPI, otherwise they receive .001 sec(s).
[BERSERKER]
BASIC = [BASIC DAMAGE] Berserker gets an extra 1 ~ 1 for every 6 STR and an extra 0 ~ 1 for every 2 STR.
BASIC RANK = Berserkers have the best Basic Damage growth rate between all classes.
HP = [HP] Berserker receives 11 HP per VIT.
HP REC = [HP RECOVERY] For every 5 VIT, the Berserker receives +1 HP Recovery.
[Details]
For this to work, the following class have to be built:
[1] TipsLoader.java - io package
The following class have to be altered:
[1] Language.java - io package
[2] StatsTab.java - gui package
Inside the Language class, the setLanguage method needs to be altered to include a call on TipsLoader to load a file from the lang directory depending on the user's preference. The method inside TipsLoader can be loadTips( ). Inside the TipsLoader class, the loadTips method has to use Wini to load and set the tips inside the Tips' text area on the GUI. To give access to PDFs or HTML files, HTML coding might have to be used and loaded by the TipsLoader class. If HTML code has to be used, then alter the text area called tipsTextArea in the StatsTab class to a JTextPane or JEditorPane.