Line | |
---|
1 | local P = createMenuSheet("Dialogue Window") |
---|
2 | |
---|
3 | function P.onLoad() |
---|
4 | P.createWindow() |
---|
5 | end |
---|
6 | |
---|
7 | |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | function P.createWindow() |
---|
12 | |
---|
13 | local question = orxonox.DialogueManager:getInstance():getquestion() |
---|
14 | local default = (winMgr:createWindow("DefaultWindow")) |
---|
15 | default:setText(question) |
---|
16 | default:setProperty("UnifiedMaxSize", "{{1,0},{1,0}}") |
---|
17 | default:setProperty("UnifiedAreaRect", "{{0,0},{0,0},{1,0},{1,0}}") |
---|
18 | |
---|
19 | |
---|
20 | |
---|
21 | |
---|
22 | |
---|
23 | end |
---|
24 | --[[local numOptions = DialogueManager:getnumOptions() |
---|
25 | local counter = 1 |
---|
26 | local offset = 0 |
---|
27 | --create and name buttons while there are still options |
---|
28 | while counter <= numOptions do |
---|
29 | |
---|
30 | |
---|
31 | end]] |
---|
Note: See
TracBrowser
for help on using the repository browser.