Mobile::setMobilePhoneScale: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The minimum/default is 500.0f. If you plan to make it bigger set it's position as well. Also this seems to need to be called in a loop as when you close the phone the scale is reset. If not in a loop you'd need to call it everytime before you re-open the phone.
The minimum/default is 500.0f. If you plan to make it bigger set it's position as well. Also this seems to need to be called in a loop as when you close the phone the scale is reset. If not in a loop you'd need to call it everytime before you re-open the phone.
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">mobile.setMobilePhoneScale(scale);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.mobile.setMobilePhoneScale(scale);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''scale:''' float
*'''scale:''' float
Line 8: Line 8:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Mobile_function_c}}
{{Mobile_s_function_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:Mobile API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 21:29, 11 May 2017

The minimum/default is 500.0f. If you plan to make it bigger set it's position as well. Also this seems to need to be called in a loop as when you close the phone the scale is reset. If not in a loop you'd need to call it everytime before you re-open the phone.

Syntax

mp.game.mobile.setMobilePhoneScale(scale);

Required Arguments

  • scale: float

Return value

  • Undefined

Example

// todo

See also