[FONT="Franklin Gothic Medium"][COLOR="Sienna"][SIZE="2"]Hi @ all
Hier release ich eine UDF welche die Items aus den verschiedenen Dateien lädt.
Die Anfrage kam von Cross aus diesem Fragethread.
Zurückgegeben wird ein 2D Array mit:
- ID
- Name
- Text
- PackMax
- ItemKind1
- Job
- Sex
- Cost
Als Parameter werden benötigt:
- $PropItemFile: Pfad zur PropItem.txt
- $PropItemFile_Txt: Pfad zur PropItem.txt.txt
- $DefineItemFile: Pfad zur DefineItem.h
Ist aber erweiterbar. Dafür einfach fragen :wink:
UDF im Anhang ;)
Vielleicht braucht es ja noch jemand.
© by Me
Beispielcode:
C
#include <GUIConstantsEx.au3>
#include <ListViewConstants.au3>
#include <WindowsConstants.au3>
#include <Array.au3>
#region ### START Koda GUI section ### Form=
$Form1_1 = GUICreate("Form1", 626, 446, 192, 124)
$ListView1 = GUICtrlCreateListView("ID|Name|Text|PackMax|ItemKind|Job|Sex|Cost", 0, 0, 617, 441)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 0, 50)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 1, 100)
GUICtrlSendMsg(-1, $LVM_SETCOLUMNWIDTH, 2, 100)
GUISetState(@SW_SHOW)
#endregion ### END Koda GUI section ###
$Items=_Load_Items("propItem.txt","propItem.txt.txt","defineItem.h")
_Arraydisplay($items)
For $i=1 to Ubound($Items)-1
GUICtrlCreateListViewItem($Items[$i][0] & '|' & $Items[$i][1] & '|' & $Items[$i][2]& '|' & $Items[$i][3]& '|' & $Items[$i][4]& '|' & $Items[$i][5]& '|' &$Items[$i][6]& '|' & $Items[$i][7], $ListView1)
Next
While 1
$nMsg = GUIGetMsg()
Switch $nMsg
Case $GUI_EVENT_CLOSE
Exit
EndSwitch
WEnd
;Copyright by Kogoro (mmorpg-core.com)
Alles anzeigen
[/SIZE][/COLOR][/FONT]