Autor Beitrag
JayEff
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 03.08.04 13:51 
Tagchen! Ich möchte eine Art Scripteditor schreiben(Es handelt sich um das LUA Script) und möchte diesen möglichst übersichtlich gestalten. Ich habe mir gedacht, in einem TreeView die "function <name>()" als Punkt und die dort eingefügten Zeilen als unterpunkte einzufügen.
Also wenn der Sourcecode SO ist:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
function Nachschub()
local num;
num=RandomInt(14);
LandReinforcement(num);
end;

function Init()
DisplayTrace("Assassins Mission");
Runscript("Nachschub", 100000);
end;


dann soll das im TreeView SO aussehen:
ausblenden Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
|-+Nachschub
| |-local num;
| |-num=RandomInt(14);
| |-LandReinforcement(num); 
|
|-+Init
  |-DisplayTrace("Assassins Mission");
  |-Runscript("Nachschub", 100000);


Und ausserdem möchte ich es umgekehrt wieder umwandeln können. mit allen Zeilenumbrüchen!
Leider verstehe ich die Hilfe vom TreeView nicht, und ein Beispiel hab ich auch nicht gefunden. Ich hoffe ihr könnt mir helfen!

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Di 03.08.04 14:01 
du hast aber noch nichts oder? weder in die eine noch in dei andere richtung?

_________________
hans bist du das ?
JayEff Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 03.08.04 14:05 
nö...warum fragst du? brauchst dus auch? sollte man sowas nicht per PN fragen?

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.
inselberg
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 458



BeitragVerfasst: Di 03.08.04 14:06 
ich wollte nur wissen wie viele denkanstösse notwendig sind ;)

_________________
hans bist du das ?
JayEff Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2971

Windows Vista Ultimate
D7 Enterprise
BeitragVerfasst: Di 03.08.04 14:14 
:?: hä :?:
(wenns so weiter gehen soll, bitte per PN, sonst kommt dashier nich in die Off-Topic... :D )

_________________
>+++[>+++[>++++++++<-]<-]<++++[>++++[>>>+++++++<<<-]<-]<<++
[>++[>++[>>++++<<-]<-]<-]>>>>>++++++++++++++++++.+++++++.>++.-.<<.>>--.<+++++..<+.