parent
59c3686242
commit
8a5f40c9a2
@ -0,0 +1,24 @@ |
|||||||
|
-- __ _ _______ _ __ |
||||||
|
-- / / /\ | | |__ __| | | \ \ |
||||||
|
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ |
||||||
|
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > |
||||||
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
||||||
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
||||||
|
|
||||||
|
local menu = {} |
||||||
|
|
||||||
|
local snm = Quantum.Client.Menu.GetAPI( "net" ) |
||||||
|
local theme = Quantum.Client.Menu.GetAPI( "theme" ) |
||||||
|
|
||||||
|
local resScale = Quantum.Client.ResolutionScale |
||||||
|
local sw, sh = ScrW(), ScrH() |
||||||
|
local padding = 10 * resScale |
||||||
|
local padding_s = 4 * resScale |
||||||
|
|
||||||
|
function menu.open( dt ) |
||||||
|
if( !f ) then |
||||||
|
|
||||||
|
end |
||||||
|
end |
||||||
|
|
||||||
|
return menu |
@ -0,0 +1,36 @@ |
|||||||
|
-- __ _ _______ _ __ |
||||||
|
-- / / /\ | | |__ __| | | \ \ |
||||||
|
-- / / / \ | |_ __ ___ | | ___ ___| |__ \ \ |
||||||
|
-- < < / /\ \ | | '_ ` _ \| |/ _ \/ __| '_ \ > > |
||||||
|
-- \ \ / ____ \| | | | | | | | __/ (__| | | | / / |
||||||
|
-- \_\ /_/ \_\_|_| |_| |_|_|\___|\___|_| |_| /_/ |
||||||
|
|
||||||
|
|
||||||
|
---- CREATE DIALOGUE INSTANCES UNDER THIS LINE ---- |
||||||
|
Quantum.Dialogue.Create( "npc_generalvendor" ) |
||||||
|
|
||||||
|
Quantum.Dialogue.AddQuestion( "npc_generalvendor", "init", "What do you want?" ) |
||||||
|
|
||||||
|
Quantum.Dialogue.AddResponse( "npc_generalvendor", "init", { |
||||||
|
text = "To do business.", |
||||||
|
newqID = "sellorbuy", |
||||||
|
func = function() |
||||||
|
print("You pressed this response!") |
||||||
|
end |
||||||
|
}, 1 ) |
||||||
|
|
||||||
|
Quantum.Dialogue.AddQuestion( "npc_generalvendor", "sellorbuy", "What do you have in mind?" ) |
||||||
|
|
||||||
|
Quantum.Dialogue.AddResponse( "npc_generalvendor", "sellorbuy", { |
||||||
|
text = "What do you have for sale?", |
||||||
|
func = function() |
||||||
|
print("You pressed this response! BUY") |
||||||
|
end |
||||||
|
}, 1 ) |
||||||
|
|
||||||
|
Quantum.Dialogue.AddResponse( "npc_generalvendor", "sellorbuy", { |
||||||
|
text = "I would like to sell some things.", |
||||||
|
func = function() |
||||||
|
print("You pressed this response! SELL") |
||||||
|
end |
||||||
|
}, 2 ) |
Loading…
Reference in new issue