Closed free0ne87 closed 4 years ago
It would be much easier to just use ImGui for this, rather than DXD9.
This has been spoken about in a few issues before.
It is indeed easier to use ImGui, the problem is that I couldn't find any example with image loading from memory. Saw some issues with image loading from file, which is not what I want if I can't get dynamic dll path.
It is indeed easier to use ImGui, the problem is that I couldn't find any example with image loading from memory. Saw some issues with image loading from file, which is not what I want if I can't get dynamic dll path.
I use this method in my own cheat, WR417H, read below.
It's possible to store images into True Font File's to replace the use of characters.
You can convert .TTF files into binary which can easily be stored in any unsigned character array (unsigned char, uint8_t, etc). Note that with uint*_t types you will be limited to how large the array can be without receiving buffer errors or similar, so it's probably best to just define your own type: typedef unsigned char memoryFont;
Later you can define your font:
memoryFont* menuIcons = io.fonts->LoadTTFFromMemory(...);
And then use ImGui::PushFont();
and ImGui::PopFont();
And,
From there, you can just use ImGui::Text() to draw images at your own will.
I'm already using icon fonts, but for example if I want to display weapon skin or any other kind of colored image, I can't use it with fonts, because it will become like a monocolor icon.
Thanks for suggestion, anyway.
I'm already using icon fonts, but for example if I want to display weapon skin or any other kind of colored image, I can't use it with fonts, because it will become like a monocolor icon.
Thanks for suggestion, anyway.
Ahhhh, I see. Right right. Well, what types of things are you looking to render? If you don't want grayscale images.
Let's say I want to render this image in skinchanger. I don't want to store images in csgo folder, also if all those images may overload memory I preffer storing them on a dynamic path alongside osiris.dll. Is there any way?
It is indeed easier to use ImGui, the problem is that I couldn't find any example with image loading from memory. Saw some issues with image loading from file, which is not what I want if I can't get dynamic dll path.
I use this method in my own cheat, WR417H, read below.
It's possible to store images into True Font File's to replace the use of characters.
You can convert .TTF files into binary which can easily be stored in any unsigned character array (unsigned char, uint8_t, etc). Note that with uint*_t types you will be limited to how large the array can be without receiving buffer errors or similar, so it's probably best to just define your own type:
typedef unsigned char memoryFont;
Later you can define your font:
memoryFont* menuIcons = io.fonts->LoadTTFFromMemory(...);
And then use
ImGui::PushFont();
andImGui::PopFont();
And, From there, you can just use ImGui::Text() to draw images at your own will.
How to convert .TTF files into binary? I don't know hot to do this
Hi guys, sorry for the bad place, but I really can't find any valid documentation that I could understand. Maybe because I'm still a noob with D3DX. So basically I'm searching for ready pasta to render image from memory with D3DXCreateTextureFromFileInMemory maybe. Just want to make Osiris menu awesome!
I will be very grateful for any help.