blob: d38f92797d452cf174b5547dc4dad8ae2589b6d3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
import SoopyMouseClickEvent from "../../../guimanager/EventListener/SoopyMouseClickEvent"
import ButtonWithArrow from "../../../guimanager/GuiElement/ButtonWithArrow"
import SoopyGuiElement from "../../../guimanager/GuiElement/SoopyGuiElement"
class FirstLoadPage extends SoopyGuiElement {
constructor(){
super()
this.setLocation(0,0,1,1)
this.guiPage = undefined
}
setLoc(addBack, addNext){
if(addBack){
let backButton = new ButtonWithArrow().setLocation(0.05, 0.85, 0.2, 0.1).setDirectionRight(false).setText("§0Back")
backButton.addEvent(new SoopyMouseClickEvent().setHandler(()=>{
this.guiPage.prevPage()
this.guiPage.closeSidebarPage()
}))
this.addChild(backButton)
}
if(addNext){
let nextButton = new ButtonWithArrow().setLocation(0.75, 0.85, 0.2, 0.1).setText("§0Next")
nextButton.addEvent(new SoopyMouseClickEvent().setHandler(()=>{
this.guiPage.nextPage()
this.guiPage.closeSidebarPage()
}))
this.addChild(nextButton)
}
}
load(){
}
}
export default FirstLoadPage
|