ah_sce_unpacked/unpacked/Bag OptionPanel Source 830bd0/Custom_Model_Bag CYOA Campa.../Custom_Model_Bag 03 The Pat...

131 lines
3.8 KiB
YAML

AltLookAngle:
x: 0
y: 0
z: 0
Autoraise: true
Bag:
Order: 0
ColorDiffuse:
b: 1
g: 1
r: 1
ContainedObjects:
- AltLookAngle:
x: 0
y: 0
z: 0
Autoraise: true
ColorDiffuse:
b: 1
g: 1
r: 1
CustomPDF:
PDFPage: 0
PDFPageOffset: 0
PDFPassword: ''
PDFUrl: https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/51eeefcbe1d1eded152916465d88296faf66528b/Dual%20Pages%2003%20The%20Path%20to%20Carcosa.pdf?raw=true
Description: ''
DragSelectable: true
GMNotes: ''
GUID: df45c0
Grid: true
GridProjection: false
Hands: false
HideWhenFaceDown: false
IgnoreFoW: false
LayoutGroupSortIndex: 0
Locked: false
LuaScript: "function onLoad()\r\n self.createInput({\r\n input_function
= \"jumpToPage\",\r\n function_owner = self,\r\n label =
\"jump to page\",\r\n alignment = 3,\r\n position = Vector(-1.6,0.1,-2.2),\r\n
\ rotation = Vector(0,0,0),\r\n scale = Vector(0.5,0.5,0.5),\r\n
\ width = 2000,\r\n height = 300,\r\n font_size
\ = 250,\r\n font_color = {0.95,0.95,0.95,0.9},\r\n color
\ = {0.3,0.3,0.3,0.6},\r\n tooltip = \"Type which page you
wish to jump to, then click off\",\r\n value = \"\",\r\n validation
\ = 1,\r\n tab = 1,\r\n })\r\nend\r\n\r\nfunction jumpToPage(_,
_, inputValue, stillEditing)\r\n if inputValue == \"\" or inputValue == nil
then return end -- do nothing if input is empty\r\n \r\n if not stillEditing
then -- jump to page if not selecting the textbox anymore\r\n jump((tonumber(inputValue)
+ 2)/2)\r\n return\r\n elseif string.find(inputValue, \"%\\n\") ~= nil
then -- jump to page if enter is pressed\r\n inputValue = inputValue.gsub(inputValue,
\"%\\n\", \"\")\r\n jump((tonumber(inputValue) + 2)/2)\r\n return\r\n
\ end\r\n \r\n if (tonumber(inputValue:sub(-1)) == nil) then -- check
and remove non numeric character\r\n Wait.time(function()\r\n self.editInput({\r\n
\ index = 0,\r\n value = inputValue:sub(1,-2)\r\n
\ })\r\n end, 0.01)\r\n return\r\n end\r\nend\r\n\r\nfunction
jump(page)\r\n self.Book.setPage(page - 1) -- offset since 0 index\r\n Wait.time(function()
-- clear page search\r\n self.editInput({\r\n index = 0,\r\n
\ value = \"\",\r\n })\r\n end, 0.01)\r\nend"
LuaScriptState: ''
MeasureMovement: false
Name: Custom_PDF
Nickname: ''
Snap: true
Sticky: true
Tags:
- CleanUpHelper_ignore
Tooltip: true
Transform:
posX: 64.825
posY: 3.038
posZ: 24.224
rotX: 0
rotY: 270
rotZ: 0
scaleX: 1.76
scaleY: 1
scaleZ: 1.76
Value: 0
XmlUI: ''
CustomMesh:
CastShadows: true
ColliderURL: ''
Convex: true
CustomShader:
FresnelStrength: 0
SpecularColor:
b: 1
g: 1
r: 1
SpecularIntensity: 0
SpecularSharpness: 2
DiffuseURL: https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/03%20Path%20to%20Carcosa.jpg?raw=true
MaterialIndex: 3
MeshURL: https://github.com/Antimarkovnikov/TTS_AHC_CYOA/blob/master/Book%20Model.obj?raw=true
NormalURL: ''
TypeIndex: 6
Description: ''
DragSelectable: true
GMNotes: ''
GUID: 06a742
Grid: true
GridProjection: false
Hands: false
HideWhenFaceDown: false
IgnoreFoW: false
LayoutGroupSortIndex: 0
Locked: false
LuaScript: ''
LuaScriptState: ''
MaterialIndex: -1
MeasureMovement: false
MeshIndex: -1
Name: Custom_Model_Bag
Nickname: 03 The Path to Carcosa
Snap: true
Sticky: true
Tooltip: true
Transform:
posX: 65
posY: 1.25
posZ: 23
rotX: 0
rotY: 270
rotZ: 0
scaleX: 1
scaleY: 1
scaleZ: 1
Value: 0
XmlUI: ''