This commit is contained in:
Torsten 2025-11-02 16:26:57 +01:00
parent c0021b5240
commit c1c5541ccd
24 changed files with 5977 additions and 692 deletions

View file

@ -1,8 +1,8 @@
{
"accentColor": "",
"theme": "obsidian",
"theme": "system",
"baseFontSizeAction": true,
"baseFontSize": 25,
"cssTheme": "AnuPpuccin",
"cssTheme": "Primary",
"textFontFamily": "Cambria"
}

View file

@ -1,5 +1,6 @@
[
"obsidian-excalidraw-plugin",
"oz-clear-unused-images",
"calc-craft"
"calc-craft",
"gdscript-syntax-highlighting"
]

File diff suppressed because one or more lines are too long

View file

@ -1,11 +1,11 @@
{
"id": "calc-craft",
"name": "CalcCraft",
"version": "1.1.2",
"minAppVersion": "0.15.0",
"description": "have formulas like in excel a1+a2, or sum()",
"author": "klaudyu",
"authorUrl": "https://www.instagram.com/klaudyul/",
"fundingUrl": "https://buymeacoffee.com/klaudyul",
"isDesktopOnly": false
}
{
"id": "calc-craft",
"name": "CalcCraft",
"version": "2.2.7",
"minAppVersion": "0.15.0",
"description": "have formulas like in excel a1+a2, or sum()",
"author": "klaudyu",
"authorUrl": "https://www.instagram.com/klaudyul/",
"fundingUrl": "https://buymeacoffee.com/klaudyul",
"isDesktopOnly": false
}

View file

@ -7,11 +7,6 @@ th::before {
transform: translate(0px, -12px);
}
td {
height:1.5em;
}
/* For row headers for td */
tr td:first-child::before {
content: attr(data-row-label);
@ -116,20 +111,73 @@ td.label-cell.row {
/*active class*/
.markdown-rendered td.cell-active{
#border-radius: 50%;
text-decoration: underline;
}
th, td {
#position: relative;
/* Hide original text when showing computed value */
.cm-table-widget .table-cell-wrapper.calc-overlay-cell:not(:focus-within) {
position: relative;
color: transparent;
}
table, th, td {
#overflow: visible!important;
}
/*
table{
margin:10px;
}*/
/* Base overlay - inherits color from parent cell */
.cm-table-widget .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
content: attr(data-calc-display);
position: absolute;
inset: 0;
display: flex;
align-items: center;
white-space: pre;
color: inherit; /* ← Changed from var(--text-normal) to inherit */
pointer-events: none;
padding: 0 4px;
}
/* Formula cell overlays - inherit formula colors */
.cm-table-widget .formula-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_color_light);
}
.theme-dark .cm-table-widget .formula-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_color_dark);
}
/* Matrix cell overlays */
.cm-table-widget .matrix-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_matrix_light);
}
.theme-dark .cm-table-widget .matrix-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_matrix_dark);
}
/* Error cell overlays */
.cm-table-widget .error-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_error_light);
}
.theme-dark .cm-table-widget .error-cell-colorenabled .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_error_dark);
}
/* Parent highlight overlays */
.cm-table-widget .cell-parents-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_parents_light);
}
.theme-dark .cm-table-widget .cell-parents-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_parents_dark);
}
/* Children highlight overlays */
.cm-table-widget .cell-children-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_children_light);
}
.theme-dark .cm-table-widget .cell-children-highlight .table-cell-wrapper.calc-overlay-cell:not(:focus-within)::after {
color: var(--CalcCraft_formula_font_children_dark);
}

View file

@ -0,0 +1,66 @@
'use strict';
var obsidian = require('obsidian');
class GdscriptSyntaxPlugin extends obsidian.Plugin {
onload() {
var self = this;
// The defineSimpleMode function is not immediately available during
// onload, so continue to try and define the language until it is.
const setupInterval = setInterval(() => {
if (CodeMirror && CodeMirror.defineSimpleMode) {
const mode = {
start: [
{ regex: /\b0x[0-9a-f]+\b/i, token: "number" },
{ regex: /\b-?\d+\b/, token: "number" },
{ regex: /#.+/, token: 'comment' },
{ regex: /\s*(@onready|@export)\b/, token: 'keyword' },
{ regex: /\b(?:and|as|assert|await|break|breakpoint|const|continue|elif|else|enum|for|if|in|is|master|mastersync|match|not|null|or|pass|preload|puppet|puppetsync|remote|remotesync|return|self|setget|static|tool|var|while|yield)\b/, token: 'keyword' },
{ regex: /[()\[\]{},]/, token: "meta" },
// The words following func, class_name and class should be highlighted as attributes,
// so push onto the definition stack
{ regex: /\b(func|class_name|class|extends|signal)\b/, token: "keyword", push: "definition" },
{ regex: /@?(?:("|')(?:(?!\1)[^\n\\]|\\[\s\S])*\1(?!"|')|"""(?:[^\\]|\\[\s\S])*?""")/, token: "string" },
{ regex: /\$[\w\/]+\b/, token: 'variable' },
{ regex: /\:[\s]*$/, token: 'operator' },
{ regex: /\:[ ]*/, token: 'meta', push: 'var_type' },
{ regex: /\->[ ]*/, token: 'operator', push: 'definition' },
{ regex: /\+|\*|-|\/|:=|>|<|\^|&|\||%|~|=/, token: "operator" },
{ regex: /\b(?:false|true)\b/, token: 'number' },
{ regex: /\b[A-Z][A-Z_\d]*\b/, token: 'operator' },
],
var_type: [
{ regex: /(\w+)/, token: 'attribute', pop: true },
],
definition: [
{ regex: /(\w+)/, token: "attribute", pop: true }
]
};
CodeMirror.defineSimpleMode('gdscript', mode);
CodeMirror.defineSimpleMode('GDScript', mode);
CodeMirror.defineSimpleMode('GDscript', mode);
self.app.workspace.iterateAllLeaves((leaf) => {
leaf.rebuildView();
});
clearInterval(setupInterval);
}
}, 100);
}
onunload() {
delete CodeMirror.modes['gdscript'];
delete CodeMirror.modes['GDScript'];
delete CodeMirror.modes['GDscript'];
}
}
module.exports = GdscriptSyntaxPlugin;
/* nosourcemap */

View file

@ -0,0 +1,10 @@
{
"author":"RobTheFiveNine",
"description": "Add live GDScript syntax highlighting to code blocks.",
"fundingUrl": "https://github.com/sponsors/RobTheFiveNine",
"id": "gdscript-syntax-highlighting",
"isDesktopOnly": false,
"minAppVersion": "1.5.12",
"name": "GDScript Syntax Highlighting",
"version": "1.0.3"
}

View file

@ -1,11 +1,20 @@
{
"disableDoubleClickTextEditing": false,
"folder": "",
"cropFolder": "",
"annotateFolder": "",
"embedUseExcalidrawFolder": false,
"templateFilePath": "Excalidraw/Template.excalidraw",
"scriptFolderPath": "Excalidraw/Scripts",
"compress": false,
"fontAssetsPath": "Excalidraw/CJK Fonts",
"loadChineseFonts": false,
"loadJapaneseFonts": false,
"loadKoreanFonts": false,
"compress": true,
"decompressForMDView": false,
"onceOffCompressFlagReset": true,
"onceOffGPTVersionReset": true,
"autosave": true,
"autosaveInterval": 15000,
"autosaveIntervalDesktop": 15000,
"autosaveIntervalMobile": 10000,
"drawingFilenamePrefix": "Drawing ",
@ -13,12 +22,21 @@
"drawingFilnameEmbedPostfix": " ",
"drawingFilenameDateTime": "YYYY-MM-DD HH.mm.ss",
"useExcalidrawExtension": true,
"cropSuffix": "",
"cropPrefix": "cropped_",
"annotateSuffix": "",
"annotatePrefix": "annotated_",
"annotatePreserveSize": false,
"displaySVGInPreview": true,
"previewImageType": "SVGIMG",
"renderingConcurrency": 3,
"allowImageCache": true,
"allowImageCacheInScene": true,
"displayExportedImageIfAvailable": false,
"previewMatchObsidianTheme": false,
"width": "400",
"height": "",
"overrideObsidianFontSize": false,
"dynamicStyling": "colorful",
"isLeftHanded": false,
"iframeMatchExcalidrawTheme": true,
@ -27,11 +45,21 @@
"matchThemeTrigger": false,
"defaultMode": "normal",
"defaultPenMode": "never",
"penModeDoubleTapEraser": true,
"penModeSingleFingerPanning": true,
"penModeCrosshairVisible": true,
"panWithRightMouseButton": false,
"renderImageInMarkdownReadingMode": false,
"renderImageInHoverPreviewForMDNotes": false,
"renderImageInMarkdownToPDF": false,
"allowPinchZoom": false,
"allowWheelZoom": false,
"zoomToFitOnOpen": true,
"zoomToFitOnResize": true,
"zoomToFitMaxLevel": 2,
"zoomStep": 0.05,
"zoomMin": 0.1,
"zoomMax": 30,
"linkPrefix": "📍",
"urlPrefix": "🌐",
"parseTODO": false,
@ -40,6 +68,8 @@
"hoverPreviewWithoutCTRL": false,
"linkOpacity": 1,
"openInAdjacentPane": false,
"showSecondOrderLinks": true,
"focusOnFileTab": true,
"openInMainWorkspace": true,
"showLinkBrackets": true,
"allowCtrlClick": true,
@ -52,6 +82,7 @@
"exportWithTheme": true,
"exportWithBackground": true,
"exportPaddingSVG": 10,
"exportEmbedScene": false,
"keepInSync": false,
"autoexportSVG": false,
"autoexportPNG": false,
@ -64,8 +95,12 @@
"experimentalFileType": false,
"experimentalFileTag": "✏️",
"experimentalLivePreview": true,
"fadeOutExcalidrawMarkup": false,
"loadPropertySuggestions": false,
"experimentalEnableFourthFont": false,
"experimantalFourthFont": "Virgil",
"addDummyTextElement": false,
"zoteroCompatibility": false,
"fieldSuggester": true,
"compatibilityMode": false,
"drawingOpenCount": 0,
@ -85,10 +120,13 @@
"mdCSS": "",
"scriptEngineSettings": {},
"defaultTrayMode": true,
"previousRelease": "2.0.17",
"compactModeOnTablets": true,
"previousRelease": "2.16.1",
"showReleaseNotes": true,
"compareManifestToPluginVersion": true,
"showNewVersionNotification": true,
"latexBoilerplate": "\\color{blue}",
"latexPreambleLocation": "preamble.sty",
"taskboneEnabled": false,
"taskboneAPIkey": "",
"pinnedScripts": [],
@ -407,6 +445,7 @@
"numberOfCustomPens": 0,
"pdfScale": 4,
"pdfBorderBox": true,
"pdfFrame": false,
"pdfGapSize": 20,
"pdfGroupPages": false,
"pdfLockAfterImport": true,
@ -414,6 +453,15 @@
"pdfNumRows": 1,
"pdfDirection": "right",
"pdfImportScale": 0.3,
"gridSettings": {
"DYNAMIC_COLOR": true,
"COLOR": "#000000",
"OPACITY": 50,
"GRID_DIRECTION": {
"horizontal": true,
"vertical": true
}
},
"laserSettings": {
"DECAY_LENGTH": 50,
"DECAY_TIME": 1000,
@ -430,11 +478,13 @@
"borderOpacity": 0,
"filenameVisible": false
},
"markdownNodeOneClickEditing": false,
"canvasImmersiveEmbed": true,
"startupScriptPath": "",
"aiEnabled": true,
"openAIAPIToken": "",
"openAIDefaultTextModel": "gpt-3.5-turbo-1106",
"openAIDefaultVisionModel": "gpt-4-vision-preview",
"openAIDefaultVisionModel": "gpt-4o",
"openAIDefaultImageGenerationModel": "dall-e-3",
"openAIURL": "https://api.openai.com/v1/chat/completions",
"openAIImageGenerationURL": "https://api.openai.com/v1/images/generations",
@ -725,5 +775,42 @@
}
},
"slidingPanesSupport": false,
"areaZoomLimit": 1,
"longPressDesktop": 500,
"longPressMobile": 500,
"doubleClickLinkOpenViewMode": true,
"isDebugMode": false,
"rank": "Bronze",
"modifierKeyOverrides": [
{
"modifiers": [
"Mod"
],
"key": "Enter"
},
{
"modifiers": [
"Mod"
],
"key": "k"
},
{
"modifiers": [
"Mod"
],
"key": "G"
}
],
"showSplashscreen": true,
"pdfSettings": {
"pageSize": "A4",
"pageOrientation": "portrait",
"fitToPage": 1,
"paperColor": "white",
"customPaperColor": "#ffffff",
"alignment": "center",
"margin": "normal"
},
"autosaveInterval": 15000,
"mathjaxSourceURL": "https://cdn.jsdelivr.net/npm/mathjax@3.2.1/es5/tex-svg.js"
}

File diff suppressed because one or more lines are too long

View file

@ -1,11 +1,11 @@
{
"id": "obsidian-excalidraw-plugin",
"name": "Excalidraw",
"version": "2.0.17",
"minAppVersion": "1.1.6",
"version": "2.16.1",
"minAppVersion": "1.5.7",
"description": "An Obsidian plugin to edit and view Excalidraw drawings",
"author": "Zsolt Viczian",
"authorUrl": "https://zsolt.blog",
"authorUrl": "https://excalidraw-obsidian.online",
"fundingUrl": "https://ko-fi.com/zsolt",
"helpUrl": "https://github.com/zsviczian/obsidian-excalidraw-plugin#readme",
"isDesktopOnly": false

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -1,10 +1,11 @@
{
"id": "oz-clear-unused-images",
"name": "Clear Unused Images",
"version": "1.1.0",
"version": "1.1.1",
"minAppVersion": "0.11.13",
"description": "Clear the images that you are not using anymore in your markdown notes to save space.",
"author": "Ozan",
"authorUrl": "https://www.ozan.pl",
"fundingUrl": "https://ko-fi.com/ozante",
"isDesktopOnly": false
}

View file

@ -0,0 +1,9 @@
{
"name": "Primary",
"version": "2.10.0",
"minAppVersion": "1.4.0",
"author": "Cecilia May",
"fundingUrl": {
"Ko-fi": "https://ko-fi.com/ceciliamay"
}
}

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,12 @@
{
"name": "Shimmering Focus",
"author": "pseudometa aka Chris Grieser",
"version": "5.58",
"minAppVersion": "1.6.0",
"authorUrl": "https://github.com/chrisgrieser/shimmering-focus",
"helpUrl": "https://github.com/chrisgrieser/shimmering-focus#readme",
"fundingUrl": {
"Ko-Fi": "https://ko-fi.com/pseudometa",
"PayPal": "https://www.paypal.me/ChrisGrieser"
}
}

File diff suppressed because one or more lines are too long

View file

@ -118,8 +118,8 @@ Receives RPC:
"elements": [
{
"type": "text",
"version": 189,
"versionNonce": 1646422536,
"version": 190,
"versionNonce": 678378050,
"isDeleted": false,
"id": "ogiPzd6g",
"fillStyle": "solid",
@ -139,7 +139,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711507,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -186,8 +186,8 @@ Receives RPC:
},
{
"type": "text",
"version": 116,
"versionNonce": 387390072,
"version": 117,
"versionNonce": 1156186846,
"isDeleted": false,
"id": "QM9z7z28",
"fillStyle": "solid",
@ -209,7 +209,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711507,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -225,8 +225,8 @@ Receives RPC:
},
{
"type": "text",
"version": 115,
"versionNonce": 1566042376,
"version": 116,
"versionNonce": 1490199042,
"isDeleted": false,
"id": "lzqSWhzg",
"fillStyle": "solid",
@ -248,7 +248,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -295,8 +295,8 @@ Receives RPC:
},
{
"type": "text",
"version": 236,
"versionNonce": 859638648,
"version": 237,
"versionNonce": 1285682974,
"isDeleted": false,
"id": "meVCNPYm",
"fillStyle": "solid",
@ -318,7 +318,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -394,8 +394,8 @@ Receives RPC:
},
{
"type": "text",
"version": 26,
"versionNonce": 1938130952,
"version": 27,
"versionNonce": 1072894402,
"isDeleted": false,
"id": "v4pT6zvp",
"fillStyle": "solid",
@ -417,7 +417,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -464,8 +464,8 @@ Receives RPC:
},
{
"type": "text",
"version": 240,
"versionNonce": 394058872,
"version": 241,
"versionNonce": 970023774,
"isDeleted": false,
"id": "fC0tirch",
"fillStyle": "solid",
@ -487,7 +487,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -534,8 +534,8 @@ Receives RPC:
},
{
"type": "text",
"version": 333,
"versionNonce": 1353139976,
"version": 334,
"versionNonce": 284133762,
"isDeleted": false,
"id": "CdMUYz3V",
"fillStyle": "solid",
@ -557,7 +557,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -604,8 +604,8 @@ Receives RPC:
},
{
"type": "text",
"version": 71,
"versionNonce": 1704627576,
"version": 72,
"versionNonce": 1590249374,
"isDeleted": false,
"id": "FvN3KcjQ",
"fillStyle": "solid",
@ -625,7 +625,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979470,
"link": null,
"locked": false,
"fontSize": 20,
@ -641,8 +641,8 @@ Receives RPC:
},
{
"type": "text",
"version": 128,
"versionNonce": 1094264328,
"version": 129,
"versionNonce": 1124534594,
"isDeleted": false,
"id": "Lufy2xnG",
"fillStyle": "solid",
@ -662,7 +662,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711508,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -678,8 +678,8 @@ Receives RPC:
},
{
"type": "text",
"version": 157,
"versionNonce": 1725570680,
"version": 158,
"versionNonce": 465216478,
"isDeleted": false,
"id": "GLtt6nBn",
"fillStyle": "solid",
@ -699,7 +699,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -715,8 +715,8 @@ Receives RPC:
},
{
"type": "text",
"version": 179,
"versionNonce": 574039304,
"version": 180,
"versionNonce": 228102402,
"isDeleted": false,
"id": "TAacQHcq",
"fillStyle": "solid",
@ -736,7 +736,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -752,8 +752,8 @@ Receives RPC:
},
{
"type": "text",
"version": 282,
"versionNonce": 469733240,
"version": 283,
"versionNonce": 582383646,
"isDeleted": false,
"id": "NVVwhe0m",
"fillStyle": "solid",
@ -773,7 +773,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -789,8 +789,8 @@ Receives RPC:
},
{
"type": "text",
"version": 400,
"versionNonce": 1360872456,
"version": 401,
"versionNonce": 1680023746,
"isDeleted": false,
"id": "91ImiIhV",
"fillStyle": "solid",
@ -810,7 +810,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -826,8 +826,8 @@ Receives RPC:
},
{
"type": "text",
"version": 481,
"versionNonce": 1297014904,
"version": 482,
"versionNonce": 1001243742,
"isDeleted": false,
"id": "fdPpliWn",
"fillStyle": "solid",
@ -847,7 +847,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -863,8 +863,8 @@ Receives RPC:
},
{
"type": "text",
"version": 559,
"versionNonce": 468157192,
"version": 560,
"versionNonce": 1917171842,
"isDeleted": false,
"id": "sCSOO4P6",
"fillStyle": "solid",
@ -884,7 +884,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -900,8 +900,8 @@ Receives RPC:
},
{
"type": "text",
"version": 157,
"versionNonce": 445387128,
"version": 158,
"versionNonce": 141658270,
"isDeleted": false,
"id": "IJaaEho9",
"fillStyle": "solid",
@ -921,7 +921,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -937,8 +937,8 @@ Receives RPC:
},
{
"type": "text",
"version": 200,
"versionNonce": 823255560,
"version": 201,
"versionNonce": 398415938,
"isDeleted": false,
"id": "wJ9HIOk7",
"fillStyle": "solid",
@ -958,7 +958,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -974,8 +974,8 @@ Receives RPC:
},
{
"type": "text",
"version": 226,
"versionNonce": 184230520,
"version": 227,
"versionNonce": 1219675358,
"isDeleted": false,
"id": "2mt7IJUS",
"fillStyle": "solid",
@ -995,7 +995,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -1011,8 +1011,8 @@ Receives RPC:
},
{
"type": "text",
"version": 239,
"versionNonce": 261644552,
"version": 240,
"versionNonce": 1684996098,
"isDeleted": false,
"id": "HloKPrJf",
"fillStyle": "solid",
@ -1032,7 +1032,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -1048,8 +1048,8 @@ Receives RPC:
},
{
"type": "text",
"version": 283,
"versionNonce": 492835704,
"version": 284,
"versionNonce": 503478558,
"isDeleted": false,
"id": "l4Cs84vC",
"fillStyle": "solid",
@ -1069,7 +1069,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979471,
"link": null,
"locked": false,
"fontSize": 20,
@ -1085,8 +1085,8 @@ Receives RPC:
},
{
"type": "text",
"version": 412,
"versionNonce": 1995898888,
"version": 413,
"versionNonce": 341028802,
"isDeleted": false,
"id": "XRpIehSi",
"fillStyle": "solid",
@ -1106,7 +1106,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711509,
"updated": 1762073979472,
"link": null,
"locked": false,
"fontSize": 20,
@ -1122,8 +1122,8 @@ Receives RPC:
},
{
"type": "text",
"version": 421,
"versionNonce": 1476322424,
"version": 422,
"versionNonce": 1339139422,
"isDeleted": false,
"id": "7VBJOBLc",
"fillStyle": "solid",
@ -1143,7 +1143,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1750310711510,
"updated": 1762073979472,
"link": null,
"locked": false,
"fontSize": 20,
@ -1159,8 +1159,8 @@ Receives RPC:
},
{
"type": "text",
"version": 169,
"versionNonce": 1792905955,
"version": 170,
"versionNonce": 193750914,
"isDeleted": false,
"id": "5hiXr5l7",
"fillStyle": "solid",
@ -1182,7 +1182,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1709040040784,
"updated": 1762073979472,
"link": null,
"locked": false,
"fontSize": 19.852103697407568,
@ -1194,7 +1194,7 @@ Receives RPC:
"containerId": null,
"originalText": "network_scene_to_client\n\nSends RPC:\n\t\n\nReceives RPC:\n\t\n\n*Signals:*\n\n\t\t",
"lineHeight": 1.25,
"baseline": 266
"baseline": 267
},
{
"type": "rectangle",
@ -1229,8 +1229,8 @@ Receives RPC:
},
{
"type": "text",
"version": 198,
"versionNonce": 533959181,
"version": 199,
"versionNonce": 259082654,
"isDeleted": false,
"id": "Fhj4p7CG",
"fillStyle": "solid",
@ -1252,7 +1252,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1709039961780,
"updated": 1762073979472,
"link": null,
"locked": false,
"fontSize": 19.852103697407568,
@ -1264,7 +1264,7 @@ Receives RPC:
"containerId": null,
"originalText": "client\n\nSends RPC:\n\t\n\nReceives RPC:\n\t\n\n*Signals:*\n\n\t\t",
"lineHeight": 1.25,
"baseline": 266
"baseline": 267
},
{
"type": "rectangle",
@ -1299,8 +1299,8 @@ Receives RPC:
},
{
"type": "text",
"version": 314,
"versionNonce": 2100607757,
"version": 315,
"versionNonce": 1381508930,
"isDeleted": false,
"id": "oHgsr2yn",
"fillStyle": "solid",
@ -1322,7 +1322,7 @@ Receives RPC:
"frameId": null,
"roundness": null,
"boundElements": [],
"updated": 1709039965875,
"updated": 1762073979472,
"link": null,
"locked": false,
"fontSize": 19.852103697407568,
@ -1334,7 +1334,7 @@ Receives RPC:
"containerId": null,
"originalText": "audio_manager\n\nSends RPC:\n\t\n\nReceives RPC:\n\t\n\n*Signals:*\n\n\t\t",
"lineHeight": 1.25,
"baseline": 266
"baseline": 267
},
{
"type": "rectangle",
@ -1383,10 +1383,10 @@ Receives RPC:
"currentItemTextAlign": "left",
"currentItemStartArrowhead": null,
"currentItemEndArrowhead": "arrow",
"scrollX": 1736.365683964645,
"scrollY": 983.2003286622428,
"scrollX": 1876.4489242920258,
"scrollY": 1682.8573013959976,
"zoom": {
"value": 0.45
"value": 0.35000000000000003
},
"currentItemRoundness": "round",
"gridSize": null,

View file

@ -1,10 +0,0 @@
pixel positions on the screen use Vector2 coordinates
cell to world using Vector2
```
var cell_size:Vector2 = Vector2(50.0, 50.0)
# or: var cell_size := Vector2(50.0, 50.0)
func grid_to_world(cell):
return cell + cell_size + cell_size / 2
```

View file

@ -0,0 +1,88 @@
Preparing the signals
```gdscript
func _ready():
host_button.pressed.connect(_on_host_pressed)
join_button.pressed.connect(_on_join_pressed)
multiplayer.peer_connected.connect(_on_peer_connected)
```
```gdscript
func _on_peer_connected(id: int):
print("my peer id: %s" % multiplayer.get_unique_id())
print("peer connected: %s" % id)
```
Starting a server
```gdscript
func _on_host_pressed() -> void:
const PORT=3000
var server_peer := ENetMultiplayerPeer.new()
server_peer.create(PORT)
multiplayer.multiplayer_peer = server_peer
```
Joining a server
```gdscript
func _on_join_pressed() -> void:
var client_peer := ENetMultiplayerPeer.new()
client_peer.create_client("127.0.0.1", PORT)
multipler.multiplayer_peer = client_peer
```
Sending RPC to server
```gdscript
```
Receiving RPC from host
```gdscript
```
Aus AWA:
```gdscript
func create_server():
log.start("create_server")
log.debug("port: "+str(port))
peer.peer_connected.connect(_on_peer_connected)
peer.peer_disconnected.connect(_on_peer_disconnected)
multiplayer_api = MultiplayerAPI.create_default_interface()
get_tree().set_multiplayer(multiplayer_api, self.get_path())
peer.create_server(port, 2000) # Max 2000 Scenes
if peer.get_connection_status()==MultiplayerPeer.CONNECTION_DISCONNECTED:
log.debug("Verbindungsaufbau fehlgeschlagen")
get_tree().quit()
multiplayer_api.multiplayer_peer = peer
```
```gdscript
func connect_client():
log.start("connect_client")
peer = ENetMultiplayerPeer.new()
log.debug("host=" + host + ", port=" + str(port))
multiplayer_api = MultiplayerAPI.create_default_interface()
get_tree().set_multiplayer(multiplayer_api, self.get_path())
peer.create_client(host, port)
peer.peer_connected.connect(_on_peer_connected)
peer.peer_disconnected.connect(_on_peer_disconnected)
if peer.get_connection_status() == MultiplayerPeer.CONNECTION_DISCONNECTED:
log.debug("Verbindungsaufbau fehlgeschlagen. SceneHost="+str(host)+", port="+str(port))
#get_tree().quit()
multiplayer_api.multiplayer_peer=peer
```
```gdscript
func request_send_chatline(txt:String):
rpc_id(1,"rpc_cs_send_chatline", txt) # 1=peer_id vom master server
@rpc("any_peer") func rpc_cs_send_chatline(txt:String):
pass # Implementation not needed on client
```

View file

@ -1,4 +1,4 @@
```python
```gdscript
func _ready() -> void:
var gem_scene := preload("gem.tscn")
var gem_instance := gem_scene.instantiate()

View file

@ -0,0 +1,3 @@
views:
- type: table
name: Table

View file

@ -0,0 +1,3 @@
views:
- type: table
name: Table

View file

@ -0,0 +1,3 @@
views:
- type: table
name: Table