conversations listlengths 3 3 | source stringclasses 1 value | stack stringclasses 1 value |
|---|---|---|
[
{
"from": "system",
"value": "Add defaults to responsive sizing\n"
},
{
"from": "human",
"value": "tool\nextends Control\n\n# Minimum size the parent Control must have in order to trigger this Responsive Sizing\nexport(Vector2) var minimumParentSize\n\n# Whether or not this Responsive Sizing is ... | gdscript | chosen |
[
{
"from": "system",
"value": "Reduce Magic number in ui life\n"
},
{
"from": "human",
"value": "\nextends HBoxContainer\n\nconst RECT_HEIGHT = 20\nconst RECT_STEP_WIDTH = [0, 20, 40, 60]\n\nonready var tree = get_tree()\nonready var _life_sprite = get_node(\"Sprite\")\nonready var _health = tree... | gdscript | chosen |
[
{
"from": "system",
"value": "Use get_current_scene() instead of hack\n"
},
{
"from": "human",
"value": "extends Node\n\n# Member variables\nvar current_scene = null\n\n\nfunc goto_scene(path):\n\t# This function will usually be called from a signal callback,\n\t# or some other function from the... | gdscript | chosen |
[
{
"from": "system",
"value": "Change mouse cursor when mouse button is pressed/released\n"
},
{
"from": "human",
"value": "\r\nextends Node\r\n\r\nvar currentScene = null\r\nvar map = null\r\n\r\nvar PlayerName = \"Niclas\"\r\nvar MAP_WIDTH = 40\r\nvar MAP_HEIGHT = 30\r\n\r\nfunc _ready():\r\n\t... | gdscript | chosen |
[
{
"from": "system",
"value": "Fix textures locations for rewards\n"
},
{
"from": "human",
"value": "\nextends Node2D\n\nsignal taken\n\nonready var anim = get_node(\"anim\")\n\nfunc _ready():\n\t# randomize items texture and animation\n\tvar sprite = get_node(\"sprite\")\n\tvar tex_num = randi()... | gdscript | chosen |
[
{
"from": "system",
"value": "Switch the random functions to be static.\n"
},
{
"from": "human",
"value": "#\r\n#\r\n#\r\n\r\nfunc rand_int_range(from, to, storage, key):\r\n\tvar delta = to - from\r\n\treturn from + (rand_int(storage, key) % delta)\r\n\r\nfunc rand_float_range(from, to, storage... | gdscript | chosen |
[
{
"from": "system",
"value": "Update Viewports tutorial to use \"frame_post_draw\"\n"
},
{
"from": "human",
"value": "extends Node\n\nonready var captured_image = $CapturedImage\n\nfunc _on_CaptureButton_pressed():\n\tget_viewport().set_clear_mode(Viewport.CLEAR_MODE_ONLY_NEXT_FRAME)\n\t# Let tw... | gdscript | chosen |
[
{
"from": "system",
"value": "Improve the example with all callbacks and new features\n\n"
},
{
"from": "human",
"value": "extends Node\n\nvar admob = null\nvar isReal = true\nvar isTop = true\nvar adId = \"ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXX\" # [Replace with your Ad Unit ID and delete this ... | gdscript | chosen |
README.md exists but content is empty.
- Downloads last month
- 4