Skip to content

Commit

Permalink
feat: add beatloop anchor to set and adjust loop from either start or…
Browse files Browse the repository at this point in the history
… end
  • Loading branch information
acolombier committed Feb 7, 2024
1 parent 7b3e485 commit b3246c0
Show file tree
Hide file tree
Showing 13 changed files with 449 additions and 30 deletions.
50 changes: 50 additions & 0 deletions res/skins/LateNight/classic/buttons/btn__loop_anchor_end.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
50 changes: 50 additions & 0 deletions res/skins/LateNight/classic/buttons/btn__loop_anchor_start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
46 changes: 46 additions & 0 deletions res/skins/LateNight/controls/button_2state_display.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!--
Description:
A button that has click or display controls.
Variables:
ObjectName : object name
ToolTipID : standard Tooltip from mixxx db
see: https://github.com/mixxxdj/mixxx/blob/main/src/skin/legacy/tooltips.cpp
Size : button size
state_X_text : label text for state X
state_X_pressed : background graphic for pressed state X
state_X_unpressed : background graphic for unpressed state X
Align : alignment of text
ConfigKey : left-click control
ConfigKeyDisp : display control
-->
<Template>
<PushButton>
<TooltipId><Variable name="TooltipId"/></TooltipId>
<ObjectName><Variable name="ObjectName"/></ObjectName>
<Size><Variable name="Size"/></Size>
<NumberStates>2</NumberStates>
<RightClickIsPushButton>false</RightClickIsPushButton>
<State>
<Number>0</Number>
<Text><Variable name="state_0_text"/></Text>
<Alignment><Variable name="Align"/></Alignment>
<Unpressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_<Variable name="BtnSize"/>.svg</Unpressed>
<Pressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_<Variable name="BtnSize"/>_active.svg</Pressed>
</State>
<State>
<Number>1</Number>
<Text><Variable name="state_1_text"/></Text>
<Alignment><Variable name="Align"/></Alignment>
<Unpressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_<Variable name="BtnSize"/>_active.svg</Unpressed>
<Pressed scalemode="STRETCH">skins:LateNight/<Variable name="BtnScheme"/>/buttons/btn_<Variable name="BtnType"/>_<Variable name="BtnSize"/>_active.svg</Pressed>
</State>
<Connection>
<ConfigKey><Variable name="ConfigKey"/></ConfigKey>
<ButtonState>LeftButton</ButtonState>
</Connection>
<Connection>
<ConfigKey><Variable name="ConfigKeyDisp"/></ConfigKey>
<ConnectValueFromWidget>false</ConnectValueFromWidget>
</Connection>
</PushButton>
</Template>
10 changes: 9 additions & 1 deletion res/skins/LateNight/decks/row_5_transportLoopJump.xml
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@
<Layout>vertical</Layout>
<SizePolicy>min,min</SizePolicy>
<MinimumSize>78,52</MinimumSize>
<MaximumSize>86,52</MaximumSize>
<MaximumSize>104,52</MaximumSize>
<Children>
<WidgetGroup><!-- loop enable + beatloop size -->
<ObjectName>AlignLeftTop</ObjectName>
Expand Down Expand Up @@ -290,6 +290,14 @@
<SetVariable name="ConfigKey"><Variable name="Group"/>,loop_out</SetVariable>
<SetVariable name="ConfigKeyRight"><Variable name="Group"/>,loop_out_goto</SetVariable>
</Template>

<Template src="skins:LateNight/controls/button_2state_display.xml">
<SetVariable name="TooltipId">loop_anchor</SetVariable>
<SetVariable name="ObjectName">LoopAnchor</SetVariable>
<SetVariable name="Size">26f,26f</SetVariable>
<SetVariable name="ConfigKey"><Variable name="Group"/>,loop_anchor_toggle</SetVariable>
<SetVariable name="ConfigKeyDisp"><Variable name="Group"/>,loop_anchor</SetVariable>
</Template>
</Children>
</WidgetGroup>
</Children>
Expand Down
67 changes: 67 additions & 0 deletions res/skins/LateNight/palemoon/buttons/btn__loop_anchor_end.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
67 changes: 67 additions & 0 deletions res/skins/LateNight/palemoon/buttons/btn__loop_anchor_start.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit b3246c0

Please sign in to comment.