TheOneAndOnly
TheOneAndOnly
CC#
Created by TheOneAndOnly on 12/10/2023 in #help
Local and world position changing
No description
7 replies
CC#
Created by TheOneAndOnly on 11/9/2023 in #help
❔ How to bind data to a listbox that doesnt come out of a database?
Title pretty much says it all. I have the following code but it doesnt work:
<ListBox x:Name="list_ideologies" Margin="0,0,1031,10" Grid.RowSpan="2" ItemsSource="{Binding data.ideologies}"/>
<ListBox x:Name="list_ideologies" Margin="0,0,1031,10" Grid.RowSpan="2" ItemsSource="{Binding data.ideologies}"/>
25 replies
CC#
Created by TheOneAndOnly on 10/25/2023 in #help
❔ How would one convert string to int?
I have a string "1.65" for example which I would want to convert to a int with the value 1.65
19 replies
CC#
Created by TheOneAndOnly on 10/12/2023 in #help
❔ What is the best way of giving the data
So I have a grid which is filed with images. I want that image to be clickable and the right data to be shown next to it. So i have to give the data with the image when I add it to the grid. What would be the best way of doing this?
4 replies
CC#
Created by TheOneAndOnly on 10/4/2023 in #help
❔ FreeImage does not contain a definition for GetBitmap
Every tutorial I find says
C++
Bitmap bitmap = FreeImage.GetBitmap(dib);
C++
Bitmap bitmap = FreeImage.GetBitmap(dib);
should be a working code. However, in my case GetBitmap is not reconized as a valid function. Is something outdated here? Am I doing something wrong here?
2 replies
CC#
Created by TheOneAndOnly on 10/1/2023 in #help
❔ How to make a program that can read this?
No description
157 replies
CC#
Created by TheOneAndOnly on 9/28/2023 in #help
❔ What would be the best way to dynamicly cut in a string>
So for example I have this: "C:\Users\USERNAME\Documents\Paradox Interactive\Hearts of Iron IV\mod\HoI4-LotrMod\gfx\interface\goals\Generic\GFX_goal_generic_industry_I.tga" But Im only intrested in the location of the file within the folder "HoI4-LotrMod" altough that folder could in theory be called anything. What would be the best way to make sure I would always end up with the last "gfx\interface\goals\Generic\GFX_goal_generic_industry_I.tga" part
7 replies
CC#
Created by TheOneAndOnly on 9/28/2023 in #help
Doesnt have the permision to save the file
So I have been working on a Window Application and start working on a way to save the settings in a file. When I tried creating and saving this file by using
doc.Save("C:\\Program Files (x86)\\Hoi4ModdingTool");
doc.Save("C:\\Program Files (x86)\\Hoi4ModdingTool");
I get the error that it doesnt have the right permissions for that. What should I do to fix that?
23 replies