Snoowy Posted December 28, 2017 Posted December 28, 2017 Hy! I started the login panel. What should I do to adapt to any screen resolution? ( Not * and / ) dxDrawImage ( 1006, 0, 362, 90, 'panel.png') -- A kép kirajzolása
DRW Posted December 28, 2017 Posted December 28, 2017 In my case I use this --Let's say you want to have a resolution reference: local refx,refy = 1600,900 --So we'll use 1600x900 -- This is the actual resolution: local screenW, screenH = guiGetScreenSize() --It's probably 1920x1080 or whatever, who cares, it'll work dxDrawImage (screenW*(240/refx),screenH*(16/refy),screenW*(1120/refx),screenH*(630/refy),"image.jpg") --[[ We multiply our real screen resolution by a division of a size or position (related to the referenced resolution) with the referenced resolution so when it's multiplied by your resolution it gets adjusted. ]] Proud owner and developer of ZNEXT: Aftermath. Enter a post-apocalyptic San Andreas and fight over 30 types of enemies and bosses with varying difficulties and skills, improve and customize your character by leveling up, completing challenges and a solid lootbox system with no Pay-to-Win mechanics that will break your experience. Meet new characters, creatures and weapon metas, experience an innovative combo-based melee system, or join our solid PvP modes to show other survivors who’s boss. Español, Pусский, Türk, عربى, Polski, Português IP: mtasa://104.36.110.227:22003 - Discord: https://discord.gg/CxMxjvC5pB
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now