Advertisement
Kijan

Rulebook UI XML

Jul 16th, 2018
221
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 3.29 KB | None | 0 0
  1. <Defaults>
  2.   <Panel class="RulesBook" width="756" height="1008" color="#141414" active="false" showAnimation="Grow" hideAnimation="Shrink" outline="#141414" outlineSize="5 5"/>
  3.   <Button class="RulesTopButtons" color="#D0D0D0" width="35" height="35" rectAlignment="UpperLeft" offsetXY="0 0"/>
  4.   <Text class="RulesText" fontSize="20" fontStyle="Bold" color="rgb(0.51, 0.51, 0.51)"/>
  5.   <InputField class="RulesInputField" width="50" height="33" fontSize="18" fontStyle="Bold" colors="#D0D0D0|#FFFFFF|#C8C8C8|rgba(0.78,0.78,0.78,0.5)"/>
  6.   <Button class="RulesBottomButtons" color="#D0D0D0" width="35" height="35" rectAlignment="LowerLeft" showAnimation="Grow" hideAnimation="Shrink"/>
  7.   <HorizontalScrollView class="RulesScroll" scrollbarBackgroundColor="#141414" scrollbarColors="rgb(0.51, 0.51, 0.51)" color="rgba(0,0,0,0.95)" scrollSensitivity="30" vertical="true" verticalScrollbarVisibility="AutoHide" raycastTarget="false"/>
  8.   <Button class="RulesControlButtons" height="80" width="45" color="#141414"/>
  9. </Defaults>
  10.  
  11.  
  12. <!-- Main rules Panel -->
  13. <Panel id="RulesPanel" class="RulesBook">
  14.   <Text id="RulesText" class="RulesText" fontSize="35" rectAlignment="UpperCenter" height="40" text="Rulebook"></Text>
  15.   <Button id="zoomInButton" class="RulesTopButtons" onClick="RulesClicked">
  16.     <Image image="ZoomIn"></Image>
  17.   </Button>
  18.   <Button id="zoomOutButton" class="RulesTopButtons" offsetXY="40 0" onClick="RulesClicked">
  19.     <Image image="ZoomOut"></Image>
  20.   </Button>
  21.   <InputField
  22.    id="InputZoomMultiplier"
  23.    class="RulesInputField"
  24.    characterValidation="Decimal"
  25.    tooltip="Percentage by which zooming and resizing happens. Must be above 100."
  26.    tooltipPosition="Above"
  27.    rectAlignment="UpperLeft"
  28.    textAlignment="MiddleCenter"
  29.    text="120"
  30.    offsetXY="80 -1"
  31.    onEndEdit="onEndEditZoomPercentage"></InputField>
  32.   <Image rectAlignment="UpperLeft" width="20" height="20" offsetXY="135 -7" image="Percentage" preserveAspect="true"></Image>
  33.   <Button id="closeButton" class="RulesTopButtons" rectAlignment="UpperRight" onClick="RulesClicked">
  34.     <Image image="X Sign"></Image>
  35.   </Button>
  36.  
  37.   <HorizontalScrollView class="RulesScroll" id="imageScroll" width="756" height="928">
  38.     <Image id="RulesImage" rectAlignment="MiddleCenter" image="1" raycastTarget="false" preserveAspect="true" width="756" height="920"></Image>
  39.   </HorizontalScrollView>
  40.   <Button id="previousPage" class="RulesControlButtons" onClick="RulesClicked" rectAlignment="MiddleLeft" active="false">
  41.     <Image image="ArrowLeft"></Image>
  42.   </Button>
  43.   <Button id="nextPage" class="RulesControlButtons" onClick="RulesClicked" rectAlignment="MiddleRight">
  44.     <Image image="ArrowRight"></Image>
  45.   </Button>
  46.  
  47.   <Button id="widenButton" class="RulesBottomButtons" onClick="RulesClicked">
  48.     <Image image="Widen"></Image>
  49.   </Button>
  50.  
  51.   <InputField id="CurrentPageCount" class="RulesInputField" characterValidation="Integer" text="1" rectAlignment="LowerCenter" textAlignment="LowerRight" offsetXY="-33 1" onEndEdit="onEndEditCurrentPage"></InputField>
  52.   <Text id="MaxPageCount" class="RulesText" text="/ 25" alignment="LowerCenter" offsetXY="12 6"></Text>
  53.  
  54.   <Button id="narrowButton" class="RulesBottomButtons" rectAlignment="LowerRight" onClick="RulesClicked">
  55.     <Image image="Narrow"></Image>
  56.   </Button>
  57. </Panel>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement