cocos2d. Tileset image file to sprite list? - dictionary

I have a tileset. For example it is represented with this file:
link
And I want to add to my game a level editor which has a panel with tile picker. How to split this image to sprite list to use inside this picker?
The problem is when you use cocos2d you use both tiled map and its tileset, but not separate tilesets.

Related

when creating custom map in Highcharts I want to use a background image however the custom map scales differently

enter image description herePer this page (https://www.highcharts.com/docs/maps/custom-maps) I open inkscape, insert an image I want to draw over and then click on "resize page to selected object" with the image selected. This resizes the page to the size of my background image. I then create the shapes over the image as instructed in the page referenced above. What I want to do is when I paste the svg into the highcharts converter it keeps the shapes as drawn on the page so that I can then insert that same picture into the background of my highchart map on the page and the shapes I have drawn fit perfectly where I drew them on the image in inkscape. Instead it seems like the converter resizes the shapes to best fit the screen. If I didn't want the background image then this would be perfect however with this feature all the images drawn no longer "fit" in the background image where I drew them. Any way to get this to be a 1:1 size conversion so that inserting a background image works?

How to create a button with an image and text WatchKit

I want to create a tappable button with an icon and some text.. kind of like how the map app does it. See the attached picture below.
I've currently tried having a button that is set to the Group mode for content. However, this makes the background clear and I wasn't sure if there were any better options. Another option that came to my mind was creating a table view with one cell that took up half the width but that would be very hacky as well.
Just create two groups. Then you can change the background color, add an image and text label. To make it clickable simply add a tapGestureRecognizer to the group and it will function just like a button.

xamarin.forms ImageSource.FromFile slow

I am using a relative layout inside ContentPage.
within the relative layout it i create childern such as labels, button, and image from from file (using the ImageSource.FromFile method), where the image is all over the screen (like backgroundImage)
what i see when presenting the page,is a black screen with all the labels and button and after one second the image appears.
I can't use BackgroundImage property because the file is created dynamically at runtime...
What is the solution for presenting the image at the same time as the labels / buttons ?
You may try using FFImageLoading. This library can be used with Xamarin.Forms and faster than
https://github.com/luberda-molinet/FFImageLoading

How do i show a country map and make cities separate by changing color of mouseover

How do i show a country map and make cities separate by changing color of mouseover
I need an Idea how to do it like www.mudah.my site.
Basically how they (http://www.mudah.my/) do is by having 1 normal map image with no country highlighted (actually it looks like they use a couple images but make it like 1 image by placing a transparent div over the top of them).
They have a standard image map applied to this '1' image to define the separate areas and when the user mouses over a relevant part of the map they display a specify section of the highlight image (http://www.mudah.my/img/map_highlight.png) in a specific place on top the the existing image, but behind the 1 main transparent div. Presumably so the links associated with the image map) continues to work.
Hope this helps.

Adding icon to Flex color picker

I want to add an icon to the color picker component which will have the value of no color (a blank rectangle) . is ther a way to do it ?
Thanks
you can make image's of whatever you'd like as icon.
Right mouse button the src map - new - CSS file to create a new CSS file in your source map, or where you want it.
Double click the CSS file and go to design mode. Right mouse button on the stage or press the +style button on the top of the contentfield.
choose your component (colorpicker) - change the color in the right column, if you still can't get what you want press the skin button in the right column and select "image files" from the list and insert your images.
In short:
- make images of what you want
- make css file
- add css to the colorpicker component
- choose skin from right menu
- choose image files from the list
- insert the images you made
ow and don't forget to add your css file in the application.

Resources