mirror of
https://github.com/Ellpeck/ActuallyAdditions.git
synced 2024-11-22 07:13:28 +01:00
Added Direwolf's spotlight to the book
This commit is contained in:
parent
84d61344f6
commit
191572c12a
4 changed files with 14 additions and 7 deletions
2
.github/ISSUE_TEMPLATE.md
vendored
2
.github/ISSUE_TEMPLATE.md
vendored
|
@ -6,7 +6,7 @@ What you expected to happen: ...
|
|||
|
||||
Steps to reproduce: ...
|
||||
|
||||
Version (Make sure you are on the latest version before reporting)
|
||||
Version (Make sure you are on the latest version before reporting)
|
||||
|
||||
Minecraft: ...
|
||||
|
||||
|
|
|
@ -128,7 +128,7 @@ public final class InitBooklet{
|
|||
private static void initChapters(){
|
||||
//Getting Started
|
||||
chaptersIntroduction[0] = new BookletChapter("bookTutorial", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemBooklet), new PageTextOnly(1), new PageTextOnly(2), new PageTextOnly(3), new PageCrafting(4, ItemCrafting.recipeBook).setNoText());
|
||||
chaptersIntroduction[1] = new BookletChapter("videoGuide", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.YOUTUBE_ICON.ordinal()), new PageLinkButton(1, "https://www.youtube.com/watch?v=fhjz0Ew56pM")).setImportant();
|
||||
chaptersIntroduction[1] = new BookletChapter("videoGuide", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemMisc, 1, TheMiscItems.YOUTUBE_ICON.ordinal()), new PageLinkButton(1, "https://www.youtube.com/watch?v=fhjz0Ew56pM"), new PageLinkButton(2, "https://www.youtube.com/playlist?list=PLJeFZ64pT89MrTRZYzD_rtHFajPVlt6cF")).setImportant();
|
||||
new BookletChapter("intro", ActuallyAdditionsAPI.entryGettingStarted, new ItemStack(InitItems.itemBooklet), new PageTextOnly(1), new PageTextOnly(2), new PageTextOnly(3));
|
||||
ArrayList<BookletPage> crystalPages = new ArrayList<BookletPage>();
|
||||
crystalPages.addAll(Arrays.asList(new PageTextOnly(1).addTextReplacement("<rf>", TileEntityAtomicReconstructor.ENERGY_USE), new PageTextOnly(2), new PageTextOnly(3), new PagePicture(4, "page_atomic_reconstructor", 0).setNoText(), new PageTextOnly(5), new PageCrafting(6, BlockCrafting.recipeAtomicReconstructor).setWildcard()));
|
||||
|
|
|
@ -20,19 +20,24 @@ import java.net.URI;
|
|||
|
||||
public class PageLinkButton extends BookletPage{
|
||||
|
||||
private static final int BUTTON_ID = -12782;
|
||||
private static int nextButtonId = 23782;
|
||||
private final int buttonId;
|
||||
|
||||
private final String link;
|
||||
|
||||
public PageLinkButton(int localizationKey, String link){
|
||||
super(localizationKey);
|
||||
this.link = link;
|
||||
|
||||
this.buttonId = nextButtonId;
|
||||
nextButtonId++;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void initGui(GuiBookletBase gui, int startX, int startY){
|
||||
super.initGui(gui, startX, startY);
|
||||
|
||||
gui.getButtonList().add(new GuiButton(BUTTON_ID, startX+125/2-50, startY+130, 100, 20, StringUtil.localize("booklet."+ModUtil.MOD_ID+".chapter."+this.chapter.getIdentifier()+".button."+this.localizationKey)));
|
||||
gui.getButtonList().add(new GuiButton(this.buttonId, startX+125/2-50, startY+130, 100, 20, StringUtil.localize("booklet."+ModUtil.MOD_ID+".chapter."+this.chapter.getIdentifier()+".button."+this.localizationKey)));
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@ -43,7 +48,7 @@ public class PageLinkButton extends BookletPage{
|
|||
|
||||
@Override
|
||||
public void actionPerformed(GuiBookletBase gui, GuiButton button){
|
||||
if(button.id == BUTTON_ID){
|
||||
if(button.id == this.buttonId){
|
||||
if(Desktop.isDesktopSupported()){
|
||||
try{
|
||||
Desktop.getDesktop().browse(new URI(this.link));
|
||||
|
|
|
@ -1044,8 +1044,10 @@ booklet.actuallyadditions.chapter.itemFilter.name=Item Filter
|
|||
booklet.actuallyadditions.chapter.itemFilter.text.1=The <item>Item Filter<r> can be used in <item>Advanced Item Laser Relays<r>, <item>ESDs<r> and <item>Ranged Collectors<r> to <imp>enlargen the size of their whitelist<r>. This can be done by right-clicking with the filter in hand and placing items to be filtered inside of it. The filter can then be placed into any whitelist slot in the desired machine. <n>For more information on this, <imp>hover over the whitelist buttons in the GUIs of whitelistable machines<r>!
|
||||
|
||||
booklet.actuallyadditions.chapter.videoGuide.name=A Video Guide
|
||||
booklet.actuallyadditions.chapter.videoGuide.text.1=If you want to have a <imp>visual introduction<r> to see what <item>Actually Additions<r> has to offer, you can watch this really awesome video by a friend of mine, <imp>Booty Toast<r> (yes, weird name, I know). <n>His video covers most of the main stuff the mod has to offer, however it is <imp>a bit outdated<r> and doesn't cover everything. It's still a <imp>great introduction to the mod<r> though.
|
||||
booklet.actuallyadditions.chapter.videoGuide.button.1=Watch Video
|
||||
booklet.actuallyadditions.chapter.videoGuide.text.1=If you want to have a <imp>visual introduction<r> to see what <item>Actually Additions<r> has to offer, you can watch this really awesome video by a friend of mine, <item>Booty Toast<r> (yes, weird name, I know). <n>His video covers most of the main stuff the mod has to offer, however it is <imp>a bit outdated<r> and doesn't cover everything. It's still a <imp>great introduction to the mod<r> though.
|
||||
booklet.actuallyadditions.chapter.videoGuide.button.1=BootyToast's Video
|
||||
booklet.actuallyadditions.chapter.videoGuide.text.2=There is also the second option, a <imp>playlist<r> consisting of a <imp>spotlight<r> by <item>Direwolf20<r>. It is a bit more recent than the other video, however, it is <imp>substantially longer<r> and provides a more detailed overview. So you have the choice: The quicker introduction on the left or the longer, more in-depth introduction down below.
|
||||
booklet.actuallyadditions.chapter.videoGuide.button.2=Direwolf's Playlist
|
||||
|
||||
booklet.actuallyadditions.chapter.shockSuppressor.name=Shock Absorber
|
||||
booklet.actuallyadditions.chapter.shockSuppressor.text.1=The <item>Shock Absorber<r> is a block that, when supplied with <imp>CF<r>, it will protect an area of <imp>up to <range> blocks around it<r> from any type of <imp>Explosion<r>, be it ghasts, TNT or creepers. <n>Every block that is protected will result in a loss of <imp><rf> CF<r>.
|
||||
|
|
Loading…
Reference in a new issue