This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tool | |
class_name FlexGridContainer | |
extends Container | |
var columns: int = 1 setget set_columns | |
func _notification(p_what): | |
match p_what: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# On the parent, e.g. ColorRect | |
# This gives this CanvasItem a "clipping mask" that only allows children to display within it's rect. | |
func _draw(): | |
VisualServer.canvas_item_set_clip(get_canvas_item(), true) | |
# On the child (Label) | |
export (float) var scroll_speed = 60 | |
func _process(delta): | |
rect_position.x -= scroll_speed * delta |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
######################################################### | |
# Basic Version | |
######################################################### | |
extends Label | |
var timer: Timer | |
func _ready(): | |
timer = Timer.new() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<UserControl x:Class="Namespace.StrideView" | |
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" | |
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" | |
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" | |
xmlns:d="http://schemas.microsoft.com/expression/blend/2008" | |
xmlns:local="clr-namespace:Namespace" | |
mc:Ignorable="d" | |
d:DesignHeight="300" d:DesignWidth="300"> | |
<Grid> | |
<ContentPresenter x:Name="SceneView"> |