Skip to content

dictateurfou/onsetMap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

- warning 
to make sure that click and wheel events work, I put all the other ui with SetWeb Visibility
on WEB_HITINVISIBLE
Why ? because if you have several user interfaces open and declare after creating a map ui,
only the last ui receives the mouse event

Image from Gyazo Image from Gyazo

config

Edit config.js

blips = static point
type = type of blip

if you add a new type with new image make sure you have added in packages.json and in web/img folder or map not load because wait all images load

create dynamic blip

we have 2 export function for create update or remove blip

createBlip(uniqIdentifier :string,type :string,pos :tab) -- for create or update blip 
removeBlip(id : string) for remove spécific blip with identifier

customisation of minimap

exemple of config for gta5 style mini map

Image from Gyazo

in config.js
miniMapClass = "mini-gta-style"; //css style
minimapWidth = 300; //width
minimapHeight = 200; //height
playerScreenDividende = 1.3; //position camera of minimap (center is 2)
baseScale = 0.8; //zoom of minimap default = 1,
in style.css (never change width or height in css)
.mini-gta-style{
    box-shadow:0 0 1em black;
    position:absolute;
    bottom:0.5em;
    left:0.5em;
    border-radius:10px;
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published