HU/setBrowserRenderingPaused: Difference between revisions
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
__NOTOC__ | __NOTOC__ | ||
{{Client function}} | {{Client function hu}} | ||
{{New feature/item|3.0150|1.5|| | {{New feature/item|3.0150|1.5|| | ||
Ez a funkció beállítja a böngésző renderelési állapotát. | |||
}} | }} | ||
== | ==Szintaxis== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
bool setBrowserRenderingPaused ( browser webBrowser, bool paused ) | bool setBrowserRenderingPaused ( browser webBrowser, bool paused ) | ||
Line 11: | Line 11: | ||
{{OOP|As of MTA: SA {{Current Version|master}} the counterpart is not implemented yet.|[[browser]]:setRenderingPaused|renderingPaused|isBrowserRenderingPaused}} | {{OOP|As of MTA: SA {{Current Version|master}} the counterpart is not implemented yet.|[[browser]]:setRenderingPaused|renderingPaused|isBrowserRenderingPaused}} | ||
=== | ===Kötelező paraméterek=== | ||
*'''webBrowser:''' | *'''webBrowser:''' a böngésző | ||
*'''paused:''' ''true'' | *'''paused:''' ''true'' a renderelés megállításához, ''false'' a folytatásához | ||
=== | ===Visszaadott érték=== | ||
Visszaad egy ''true'' értéket, ha az állapot sikeresen meg lett változtatva | |||
== | ==Példa== | ||
<syntaxhighlight lang="lua"> | <syntaxhighlight lang="lua"> | ||
--In order to render the browser on the full screen, we need to know the dimensions. | --In order to render the browser on the full screen, we need to know the dimensions. | ||
Line 49: | Line 49: | ||
</syntaxhighlight> | </syntaxhighlight> | ||
== | ==Lásd még== | ||
{{CEF_functions hu}} | {{CEF_functions hu}} | ||
[[en:setBrowserRenderingPaused]] | [[en:setBrowserRenderingPaused]] | ||
==Fordította== | |||
* '''''[https://wiki.multitheftauto.com/wiki/User:Surge Surge]''''' |
Latest revision as of 13:06, 21 August 2018
Ez a funkció beállítja a böngésző renderelési állapotát.
Szintaxis
bool setBrowserRenderingPaused ( browser webBrowser, bool paused )
OOP Syntax Help! I don't understand this!
- Note: As of MTA: SA 1.6 the counterpart is not implemented yet.
- Method: browser:setRenderingPaused(...)
- Variable: .renderingPaused
- Counterpart: isBrowserRenderingPaused
Kötelező paraméterek
- webBrowser: a böngésző
- paused: true a renderelés megállításához, false a folytatásához
Visszaadott érték
Visszaad egy true értéket, ha az állapot sikeresen meg lett változtatva
Példa
--In order to render the browser on the full screen, we need to know the dimensions. local screenWidth, screenHeight = guiGetScreenSize() --Let's create a new browser in remote mode. local window = guiCreateWindow(0, 0, screenWidth, screenHeight, "Webbrowser", false) local browser = guiCreateBrowser(0, 0, 800, 600, false, false, false, window) -- The event onClientBrowserCreated will be triggered, after the browser has been initialized. -- After this event has been triggered, we will be able to load our URL local theBrowser = guiGetBrowser(browser) -- Get the browser element from gui-browser addEventHandler("onClientBrowserCreated", theBrowser, function() -- After the browser has been initialized, we can load www.youtube.com loadBrowserURL(source, "http://www.youtube.com") end ) addCommandHandler ("pause", -- Add command named 'pause' function (player, command, value) if (value) then -- checking for a value setBrowserRenderingPaused (theBrowser, value) else -- if there is no value outputChatBox ("You must enter a value.", player) end end )
Lásd még
- HU/canBrowserNavigateBack
- HU/canBrowserNavigateForward
- HU/createBrowser
- HU/executeBrowserJavascript
- HU/focusBrowser
- HU/getBrowserProperty
- HU/getBrowserSettings
- HU/getBrowserSource
- HU/getBrowserTitle
- HU/getBrowserURL
- HU/injectBrowserMouseDown
- HU/injectBrowserMouseMove
- HU/injectBrowserMouseUp
- HU/injectBrowserMouseWheel
- HU/isBrowserDomainBlocked
- HU/isBrowserFocused
- HU/isBrowserLoading
- HU/loadBrowserURL
- HU/navigateBrowserBack
- HU/navigateBrowserForward
- HU/reloadBrowserPage
- HU/requestBrowserDomains
- HU/resizeBrowser
- HU/setBrowserAjaxHandler
- HU/setBrowserProperty
- HU/setBrowserRenderingPaused
- HU/setBrowserVolume
- HU/toggleBrowserDevTools