Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/develop' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jul 22, 2024
2 parents 90f5689 + 12d8ea6 commit a4399f2
Show file tree
Hide file tree
Showing 19 changed files with 49 additions and 34 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ <h1>avec</h1>
<p>elle aura exactement le même effet puisqu'il s'agit simplement d'une abréviation de la première déclaration. Alors comment faire <i>pour</i> obtenir quelque chose comme ça ? C'est pourquoi la déclaration <span class="inline">with</span> existe dans <span class="notranslate">GML</span>. La déclaration <span class="inline">with</span> a la syntaxe suivante :</p>
<p class="code">with (&lt;expression&gt;)<br />
{<br />
&lt;statement&gt;;<br />
&lt;statement&gt;;<br />
...<br />
    &lt;statement&gt;;<br />
    &lt;statement&gt;;<br />
    ...<br />
}</p>
<p>Pour l'<a class="glossterm" data-glossterm="expression" href="#">expression</a>, vous pouvez indiquer une ou plusieurs instances (ou un <span class="notranslate">struct</span>) sur lesquelles exécuter le code, en utilisant un ID d'instance, l'ID d'objet (qui indique que <i>toutes les instances</i> de la room de cet objet doivent exécuter le bloc de code), l'ID <span class="notranslate">struct</span> ou l'un des <a href="../Instance_Keywords.htm">mots-clés</a> spéciaux (<span class="inline">all</span> ou <span class="inline">other</span>). Cela aura pour effet de modifier la <strong>portée</strong> du code entre les crochets <span class="inline">{}</span>, de l'instance, <span class="notranslate">struct</span> ou de la fonction qui contient réellement le code à l'instance (ou aux instances ou <span class="notranslate">struct</span>) indiquée(s) dans l'expression.</p>
<p>Une fois que l'expression a défini la portée de <span class="inline">with</span>, l'<a class="glossterm" data-glossterm="déclaration" href="#">instruction</a> sera exécutée pour chacune des instances indiquées, comme si cette instance était l'instance actuelle ( <span class="inline">self</span>). Donc, pour revenir à notre problème initial, pour déplacer toutes les instances de l'objet boule de 8 pixels vers le bas, vous devez taper :</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ <h2>Valeur de retour</h2>
<br />
function sqr_calc(val)<br />
{<br />
    if (!is_real(val)) <br />
    if (!is_real(val))<br />
    {<br />
        return 0;<br />
    }<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<body>
<!--<div class="body-scroll" style="top: 150px;">-->
<h1><span data-field="title" data-format="default">audio_sound_get_asset</span></h1>
<p>This function returns the <span data-keyref="Type_Asset_Sound"><a href="../../../../The_Asset_Editors/Sounds.htm" target="_blank">Sound Asset</a></span> that was used to play the given <span data-keyref="Type_ID_Sound_Instance"><a href="audio_play_sound.htm" target="_blank">Sound Instance ID</a></span>. The sound must be active (i.e. currently playing) for this function to return the correct value, otherwise it will return <span class="inline2">undefined</span>.</p>
<p>This function returns the <span data-keyref="Type_Asset_Sound"><a href="../../../../The_Asset_Editors/Sounds.htm" target="_blank">Sound Asset</a></span> that was used to play the given <span data-keyref="Type_ID_Sound_Instance"><a href="audio_play_sound.htm" target="_blank">Sound Instance ID</a></span>. The sound must be active (i.e. <a href="audio_is_playing.htm">currently playing</a>) for this function to return the correct value, otherwise it will throw a fatal error.</p>
<p> </p>
<h4>Syntax:</h4>
<p class="code"><span data-field="title" data-format="default">audio_sound_get_asset</span>(index);</p>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ <h1>Séquences</h1>
<li>Définissez les valeurs de haut niveau de l'objet séquentiel, comme la longueur, le mode de lecture, la vitesse de lecture, etc... Par exemple :</li>
</ul>
<p class="code">myseq.length = 120;<br />
myseq.loopmode = seqplay_pingpong</p>
myseq.loopmode = seqplay_pingpong;</p>
<ul class="colour">
<li>Avant de pouvoir ajouter des pistes à l'objet séquence, vous devez les créer, donc vous allez maintenant créer un tableau de pistes d'<i>actifs</i> qui ont été définies avec la fonction <a href="sequence_track_new.htm"><span class="inline">sequence_track_new()</span></a>. Notez que dans le code, il n'y a pas vraiment de différence entre les pistes d'actifs et les pistes de paramètres - il s'agit simplement de pistes et leur comportement dépend du type de piste que vous créez et du fait qu'elles soient assignées en tant que sous-pistes à une piste de niveau supérieur ou non. Ainsi, vous pouvez créer une piste pour un actif, puis lui attribuer des sous-pistes pour les différents paramètres et ces sous-pistes agiront comme des pistes de <i>paramètres</i> pour l'actif. L'exemple ci-dessous crée une seule piste d'actif graphique qui sera ajoutée à la séquence ultérieurement :</li>
</ul>
Expand All @@ -61,21 +61,26 @@ <h1>Séquences</h1>
<p class="code">// Create a new keyframe struct for a graphics asset track and add it to an array (as you can have multiple keys in a frame)<br />
var graphickeys = array_create(1);<br />
graphickeys[0] = sequence_keyframe_new(seqtracktype_graphic);<br />
<br />
// Set the graphics keyframe top level data for the keyframe position and length, etc...<br />
graphickeys[0].frame = 0;<br />
graphickeys[0].length = 1;<br />
graphickeys[0].stretch = true;<br />
graphickeys[0].disabled = false;<br />
<br />
// Create the channel data that will go into this keyframe (again an array, as each key can have multiple channels of keyframe data)<br />
var graphickeydata = array_create(1);<br />
graphickeydata[0] = sequence_keyframedata_new(seqtracktype_graphic);<br />
graphickeydata[0].spriteIndex = spr_Platform;<br />
graphickeydata[0].channel = 0;<br />
<br />
// Add the keyframe data channels to the graphics track keyframe<br />
graphickeys[0].channels = graphickeydata;<br />
<br />
// Add the definied keyframes to the track<br />
mytracks[0].name = &quot;TestGraphicTrack&quot;;<br />
mytracks[0].keyframes = graphickeys;</p>
mytracks[0].keyframes = graphickeys;
</p>
<ul class="colour">
<li>Nous devons maintenant créer une piste de paramètres que nous allons affecter comme sous-piste à la piste graphique que nous venons de créer. Cette opération s'effectue de la même manière que ci-dessus, mais nous devons maintenant donner à la piste un nom qui indique son objectif, dans ce cas &quot;position&quot;, car nous utiliserons cette piste pour déplacer la piste graphique au cours des images d'animation de la séquence :</li>
</ul>
Expand All @@ -90,26 +95,32 @@ <h1>Séquences</h1>
paramkeys[0].frame = 0;<br />
paramkeys[1] = sequence_keyframe_new(seqtracktype_real);<br />
paramkeys[1].frame = 120;<br />
<br />
// Create the keyframe data structs<br />
var paramkeydata1 = array_create(2);<br />
paramkeydata1[0] = sequence_keyframedata_new(seqtracktype_real);<br />
paramkeydata1[0].channel = 0; // Channel 0 for a position track is the X position<br />
paramkeydata1[0].value = 0;<br />
<br />
paramkeydata1[1] = sequence_keyframedata_new(seqtracktype_real);<br />
paramkeydata1[1].channel = 1; // Channel 1 for a position track is the Y position<br />
paramkeydata1[1].value = 0;<br />
<br />
var paramkeydata2 = array_create(2);<br />
paramkeydata2[0] = sequence_keyframedata_new(seqtracktype_real);<br />
paramkeydata2[0].channel = 0;<br />
paramkeydata2[0].value = room_width;<br />
paramkeydata2[1] = sequence_keyframedata_new(seqtracktype_real);<br />
paramkeydata2[1].channel = 1;<br />
paramkeydata2[1].value = room_height;<br />
<br />
// Assign the keyframe data structs to the channels for each key<br />
paramkeys[0].channels = paramkeydata1;<br />
paramkeys[1].channels = paramkeydata2;<br />
<br />
// Assign the keys to the parameter track<br />
paramtracks[0].keyframes = paramkeys;</p>
paramtracks[0].keyframes = paramkeys;
</p>
<ul class="colour">
<li>Ceci étant fait, la dernière chose à faire est d'assigner la piste de paramètres comme sous-piste à notre piste principale d'actifs graphiques que nous avons créée au début, puis d'assigner ces pistes à la séquence dont nous pouvons ensuite créer une instance dans la pièce :</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ <h4>Exemple étendu :</h4>
<p>Le code ci-dessus charge le contenu du fichier &quot;<i>Player_Save.sav</i>&quot; sur le site <span class="notranslate">buffer</span>, en stockant l'ID de l'appel de fonction dans la variable &quot;<i>loadid</i>&quot;. Lorsque le chargement est terminé, l'événement asynchrone Save/Load est déclenché et vous pouvez analyser la carte <span class="inline">async_load</span> pour trouver l'ID correct de la fonction, comme ceci :</p>
<p class="code">if ds_map_find_value(async_load, &quot;id&quot;) == loadid<br />
{<br />
    if (ds_map_find_value(async_load, &quot;status&quot;) == false) <br />
    if (ds_map_find_value(async_load, &quot;status&quot;) == false)<br />
    {<br />
        show_debug_message(&quot;Load failed!&quot;);<br />
    }<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ <h4>Exemple étendu :</h4>
<p>Le code ci-dessus enregistre le contenu de <span class="notranslate">buffer</span> &quot;<i>buff</i>&quot; dans le fichier de sauvegarde donné, en stockant l'ID de l'appel de fonction dans la variable &quot;<i>saveid</i>&quot;. Lorsque la sauvegarde est terminée, l'événement asynchrone Save/Load sera déclenché et vous pourrez analyser la carte <span class="inline">async_load</span> pour trouver l'ID correct de la fonction, comme ceci :</p>
<p class="code">if ds_map_find_value(async_load, &quot;id&quot;) == saveid<br />
{<br />
    if (ds_map_find_value(async_load, &quot;status&quot;) == false) <br />
    if (ds_map_find_value(async_load, &quot;status&quot;) == false)<br />
    {<br />
        show_debug_message(&quot;Save failed!&quot;);<br />
    }<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>debug_get_callstack</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../../../assets/css/default.css" type="text/css" />
<script src="../../../assets/scripts/main_script.js"></script>
<meta name="rh-authors" content="Mark Alexander" />
Expand Down Expand Up @@ -47,10 +47,10 @@ <h4>Les retours :</h4>
<h4><b>Exemple :</b></h4>
<p class="code">if debug_mode<br />
{<br />
    if (keyboard_check(vk_escape)) <br />
    if (keyboard_check(vk_escape))<br />
    {<br />
        var _a = debug_get_callstack(4);<br />
        for (var i = 0; i &lt; array_length_id(_a); ++i;)<br />
        for (var i = 0; i &lt; array_length(_a); i++)<br />
        {<br />
            show_debug_message(_a[i]);<br />
        }<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>gc_target_frame_time</title>
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<link rel="stylesheet" href="../../../assets/css/default.css" type="text/css" />
<script src="../../../assets/scripts/main_script.js"></script>
<meta name="rh-authors" content="Mark Alexander" />
Expand All @@ -25,7 +25,7 @@ <h4>Syntaxe :</h4>
<tr>
<th>Arguments</th><th>Type</th>
<th>Description</th>
</tr>
</tr>
<tr>
<td><span class="notranslate">time</span></td><td><span data-keyref="Type_Real"></span></td>
<td><span class="notranslate">The target time - in microseconds -  that the garbage collector should work each frame</span></td>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="utf-8" ?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
Expand Down Expand Up @@ -40,11 +40,15 @@ <h1>Cloner un référentiel</h1>
</div>
<h5><span data-keyref="Copyright Notice">Copyright <span class="notranslate">YoYo Games Ltd.</span> 2021 Tous droits réservés</span></h5>
</div>
<!-- KEYWORDS
<h5><span data-keyref="Copyright Notice">© Copyright YoYo Games Ltd. 2024 All Rights Reserved</span></h5>
</div>
<!-- KEYWORDS
Source Control Clone Repository
clone repository
clone
--><!-- TAGS
-->
<!-- TAGS
source_control_clone
--></body>
-->
</body>
</html>
4 changes: 2 additions & 2 deletions Manual/contents/Quick_Start_Guide/Movement_And_Controls.htm
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,8 @@ <h1>Mouvement et contrôles</h1>
<p class="dropspot"><img alt="GML VisualExample" class="center" src="../assets/Images/QS_Guide/QS_DnD_Example.png" /></p>
<p class="code">if gamepad_id &gt; -1<br />
{<br />
    var _h = gamepad_axis_value(gamepad_id, gp_axislh);<br />
    var _v = gamepad_axis_value(gamepad_id, gp_axislv);<br />
    var _h = gamepad_axis_value(gamepads[0], gp_axislh);<br />
    var _v = gamepad_axis_value(gamepads[0], gp_axislv);<br />
    x += _h * 4;<br />
    y += _v * 4;<br />
}</p>
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified Manual/contents/assets/Images/IDE Tools/SCM_StagedChanges.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Adobe RoboHelp 2020" />
<meta name="generator" content="Adobe RoboHelp 2022" />
<meta name="topic-comment" content="" />
<title>Instance_creation_order_warning</title>
<link rel="stylesheet" type="text/css" href="../css/default.css" />
Expand Down
24 changes: 12 additions & 12 deletions Manual/toc/Default.toc
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,6 @@
<page href="../contents/Introduction/The_Output_Window.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Our_Knowledge_Base.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Our_Social_Links.htm" format="html" processing-role="normal"></page>
<book href="../contents/Introduction/The_Marketplace.htm" format="html" processing-role="normal">
<page href="../contents/Introduction/Marketplace/Your_Marketplace_Library.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Purchasing_An_Asset.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Creating_A_Publisher_Account.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Listing_An_Asset.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Creating_A_Marketplace_Asset.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Creating_A_Tutorial.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Listing_A_Service.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Submission_Guidelines.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Marketplace_Style_Guide.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Rating_And_Flagging_Assets.htm" format="html" processing-role="normal"></page>
</book>
</book>
<book navtitle="Guide de démarrage rapide" href="../contents/Quick_Start_Guide/Quick_Start_Guide.htm" format="html" processing-role="normal">
<page navtitle="Qu'est-ce que la programmation ?" href="../contents/Quick_Start_Guide/What_Is_Programming_.htm" format="html" processing-role="normal"></page>
Expand Down Expand Up @@ -264,6 +252,18 @@
<page href="../contents/Additional_Information/Compatibility_Functions.htm" format="html" processing-role="normal"></page>
<page href="../contents/Additional_Information/Compatibility_Scripts.htm" format="html" processing-role="normal"></page>
<page href="../contents/Additional_Information/Obsolete_Functions.htm" format="html" processing-role="normal"></page>
<book href="../contents/Introduction/The_Marketplace.htm" format="html" processing-role="normal">
<page href="../contents/Introduction/Marketplace/Your_Marketplace_Library.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Purchasing_An_Asset.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Creating_A_Publisher_Account.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Listing_An_Asset.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Creating_A_Marketplace_Asset.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Creating_A_Tutorial.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Listing_A_Service.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Submission_Guidelines.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Marketplace_Style_Guide.htm" format="html" processing-role="normal"></page>
<page href="../contents/Introduction/Marketplace/Rating_And_Flagging_Assets.htm" format="html" processing-role="normal"></page>
</book>
</book>
<book href="../contents/GameMaker_Language.htm" format="html" processing-role="normal">
<book navtitle="GML Visual" href="../contents/Drag_And_Drop/Drag_And_Drop_Index.htm" format="html" processing-role="normal">
Expand Down

0 comments on commit a4399f2

Please sign in to comment.