BL Coding How to create custom UI

正在查看此主题的用户

EmreBugday

Recruit
I have been looking into a way on how to draw custom UI into the screen for a while but couldn't find how. Is there anybody out there managed to accomplish this? I read from the devblogs of the TaleWorld that drawing UI will be done through XML so I am expecting something similar to XAML. I have been looking into uncompiled codes for days and couldnt understand how they handled UI.
 
最后编辑:
GauntletUI classes exist as a namespace, there's a lot of code exposed, but nothing I could find so far which let me draw anything to the screen. I wanted to do sprint mod with a sprint bar, but yeeeeeah, not that easy.
 
点赞 0

DlVT2.jpg
6czeE.jpg
 
最后编辑:
点赞 0
We can modify the layout of the UI with xml but the viewmodel that is feeding that UI is the problem. Many modder and myself are trying to find a solution to this.
 
点赞 0
We can modify the layout of the UI with xml but the viewmodel that is feeding that UI is the problem. Many modder and myself are trying to find a solution to this.

Yeah, editing the XML is pretty straightforward but anything else than that.. that is an another question...
 
点赞 0
Well i did some searchs and i stopped yesterday cause of the headache, but i can share my findings.

Most have been reported Here if you want to read but i did noticed a few new that did lead nowhere even if i'm pretty sure it's making me progress a bit.
In TaleWorlds.GauntletUI.Data.dll you have a lot of classes and methods that are obviously related to the UI. Gauntletview is a view and seem to handle most of the work while all the rest are components (except GauntletMovie).
You have classes that are named ViewBindCommandInfo and ViewBindDataInfo that clearly binds some part of XML files to game datas even if i did not figured exactly how. Debugging gives strange values ...

I stoped cause all in all, even if i know how this this is done, in the end i still can't find anyway to use or test them cause Taleworld have the f habit to put everything private as if they were fearing that we actually mod their game .. If you can find anything, well, will be please if someone could succeed in modding this UI that is for me the worst of the whole game so far.
 
点赞 0
后退
顶部 底部