我有我想知道如果我可以从这个givein信息得到一个值的INI文件搜索值获取从INI文件
我INI看起来像这样
[Images]
image135=Lava.bmp
x135=13
y135=5
image76=Mountian.bmp
x76=7
y76=6
image86=Lava.bmp
x86=8
y86=6
image85=Lava.bmp
x85=8
y85=5
image125=gryph.bmp
x125=12
y125=5
现在我打开这个INI ,我想找到的图片## [值]凡我所知道的是X ## [值]和y ## [值]
所以说,我知道我的值是(8,6),现在我想获取Lava.bmp图像返回。注8是x坐标,6是坐标。
不知道IAM解释这一权利,但如果没有,请索要更多信息
当前代码
HexMapIni := TIniFile.Create(FGamePlay.MapName); //creates ini file
eposition.x := FGameplay.TempCurrentPosition.x; //x value to search ini for
eposition.y := FGamePlay.TempcurrentPosition.y; //y value to search ini for
ImageYouWant := //Searchresult.bmp
Hexmap1.ImageAHex(ImageYouWant , bsSolid, eposition); //place image on map
这就是我所想象的,但hopeing有办法。 –