To Jkos Log Framework
Posted: Tue Apr 08, 2014 10:46 am
Hi Jkos.
I am using the Framework in my Mod and I have a Question. I trying to figure out how to put a 75 x75 image in the upper left corner of the below Code for dialog Box. It say something about (npc module) I don't have it in any of the Framework folders, so am I missing something??
The line of code is: local s_npcId = "" -- "npc_guard" and local s_dlgId = Dialog.new(s_text, s_agree, nil) --s_npcId). I assume this must be where the Image is added, but I am not sure.. In the sample Mod you created it says you can put a Image in the Box...
Any help on this? Thank You
I am using the Framework in my Mod and I have a Question. I trying to figure out how to put a 75 x75 image in the upper left corner of the below Code for dialog Box. It say something about (npc module) I don't have it in any of the Framework folders, so am I missing something??
The line of code is: local s_npcId = "" -- "npc_guard" and local s_dlgId = Dialog.new(s_text, s_agree, nil) --s_npcId). I assume this must be where the Image is added, but I am not sure.. In the sample Mod you created it says you can put a Image in the Box...
Any help on this? Thank You
Code: Select all
--
-- Example on how to build your own dialog
--
-- This example uses all features:
-- * Shows portrait of the npc
-- * Defines buttons with custom text
-- * Uses a callback function to process the result
--
s_challenge = "Right, make me!"
s_agree = "I'm going already!"
function clickOgre()
local s_npcId = "" -- "npc_guard"
local s_text = [[Hey, you!
What are you doing here? Why are you pressing
this button?
You're not supposed to be here.
Leave while you can!]]
local s_dlgId = Dialog.new(s_text, s_agree, nil) --s_npcId)
Dialog.addButton(s_dlgId, s_challenge)
Dialog.activate(s_dlgId, ogreCallBack)
end
function ogreCallBack(s_caption)
if s_caption == s_challenge then
hudPrint("Oh oh... Now you've done it!")
end
if s_caption == s_agree then
hudPrint("Party is full of chickens!")
end
end