I'm looking to create a minimap but I have one major problem, I cannot get the minimap.tga to scale up. I want my minimap to have zoom factors but be limited. This is something the built in one doesn't do very well. Plus I plan on having a few features it cant currently do. So how can I scale the minimap.tga up? Do I have to convert it to something else to get it to scale? Or am I just doing it wrong?
Edit: I've tried creating it as a 1024x1024 image and 256x256 image, both with tiled disabled and as a normal image type. Currently I just cant change its size...
Edit2: The Image below shows the minimap with a supposed scale of 1024x1024, which obviously its not :/
Dialog - Set (Last created dialog item) size to (Width, Height) for (All players)
This is what I am basically saying doesn't work. I have created the dialog item and set its size but the size doesn't change, its set to a normal type of image with tiled disabled but it still doesn't re-size.
I'm also looking to specifically NOT use the games minimap because you cant control it in any way when you create it as a preset type, at least from my experience I also want to have special things showing up in it as well. I need to be able to control whats seen and change its size, and I also don't want those enormous buttons on the side that you cant force to go away.
After messing with it a bit it would work but I still can't get it to set the size of the minimap image.
another idea would be to export the minimap image and import it back in as a dds file and use should be able to scale it unless u want the camera box and units to appear. This would be a nonfunctionally minimap just an image of a minimap
I may do that, its really not hard to create the image dots on it, I just wanted to know if there was a better way. :/
My script is already huge (15,000 lines) and has a lot of stuff to process and while I'm sure the SC engine can handle it using non-script stuff would be better I would imagine especially when it comes to threads used.
I also didn't realize but yes your version of bringing up the minimap does in fact not use the buttons the one I found before had those ugly ass buttons for pings etc in it.
Hi there
If you just want to scale an image ,you can just add an image scale program.They offers detailed tutorial for any image scaling.And you can also zoom the image effective.That would be more convenient.Hope to help you.
Rollback Post to RevisionRollBack
To post a comment, please login or register a new account.
I'm looking to create a minimap but I have one major problem, I cannot get the minimap.tga to scale up. I want my minimap to have zoom factors but be limited. This is something the built in one doesn't do very well. Plus I plan on having a few features it cant currently do. So how can I scale the minimap.tga up? Do I have to convert it to something else to get it to scale? Or am I just doing it wrong?
Edit: I've tried creating it as a 1024x1024 image and 256x256 image, both with tiled disabled and as a normal image type. Currently I just cant change its size...
Edit2: The Image below shows the minimap with a supposed scale of 1024x1024, which obviously its not :/
@Sneakervek: Go
Create Dialog with UI Part with parameters
Options: Action
Return Type: (None)
Parameters
Dialog = (Last created dialog) <Dialog>
UI Part = Minimap <UI Parts>
X = 0 <Integer>
Y = 0 <Integer>
Width = 0 <Integer>
Height = 0 <Integer>
Grammar Text: Create Dialog with UI Part with parameters: X, Y, Width, Height
Hint Text: (None)
Custom Script Code
Local Variables
Actions
Dialog - Create a Image for dialog Dialog using the template (String(UI Part))
Dialog - Move (Last created dialog item) to (X, Y) relative to Top Left of dialog for (All players)
Dialog - Set (Last created dialog item) size to (Width, Height) for (All players)
--------UI Parts
Value Type: Custom Script (String)
Values
Minimap (String is "MinimapPanel/MinimapPanelTemplate")
---------Minimap
Events
Game - Map initialization
Local Variables
Command = No Dialog <Dialog>
Minimap = No Dialog <Dialog>
Conditions
Actions
Dialog - Create a Modal dialog of size (349, 335) at (0, 0) relative to Bottom Left of screen
Variable - Set Minimap = (Last created dialog)
Create Minimap with Minimap with parameters: 0, 0, 400, 400
Dialog - Hide the background image of (Last created dialog)
Dialog - Show (Last created dialog) for (All players)
---------So basically u have a Function, a script function, and a trigger.
Create another trigger and hide the orginal minimap. So you basically make your own minimap and you can scale it with the 3rd trigger above.
Cheers
@gamfvr: Go
This is what I am basically saying doesn't work. I have created the dialog item and set its size but the size doesn't change, its set to a normal type of image with tiled disabled but it still doesn't re-size.
I'm also looking to specifically NOT use the games minimap because you cant control it in any way when you create it as a preset type, at least from my experience I also want to have special things showing up in it as well. I need to be able to control whats seen and change its size, and I also don't want those enormous buttons on the side that you cant force to go away.
After messing with it a bit it would work but I still can't get it to set the size of the minimap image.
@Sneakervek: Go
i see, then it must be data related, ill look around
there are no buttons involed with my set up, all it will show is the minimap and only the minimap
@Sneakervek: Go
another idea would be to export the minimap image and import it back in as a dds file and use should be able to scale it unless u want the camera box and units to appear. This would be a nonfunctionally minimap just an image of a minimap
@gamfvr: Go
I may do that, its really not hard to create the image dots on it, I just wanted to know if there was a better way. :/
My script is already huge (15,000 lines) and has a lot of stuff to process and while I'm sure the SC engine can handle it using non-script stuff would be better I would imagine especially when it comes to threads used.
I also didn't realize but yes your version of bringing up the minimap does in fact not use the buttons the one I found before had those ugly ass buttons for pings etc in it.
@Sneakervek: Go
This is just theory but couldn't you replace the minimap.tga file with a much bigger image file?? this is just a thought.
@gamfvr: Go
Possibly but I would like to implement a zoom function. And It may not scale the dots up to it.
Edit: You can't change the minimap.
@Sneakervek: Go
Hi there If you just want to scale an image ,you can just add an image scale program.They offers detailed tutorial for any image scaling.And you can also zoom the image effective.That would be more convenient.Hope to help you.