Skip to content

Custom colors and/or background images for code regions in GMEdit.

Notifications You must be signed in to change notification settings

YAL-GMEdit/region-backgrounds

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

region-backgrounds

Allows to give your regions custom backgrounds.

Syntax:

GMS2:
#region[#RRGGBBAA]...
...
#endregion
#region[class-suffix]...
...
#endregion
GMS1:
//#region[#RRGGBBAA]...
...
//#endregion
//#region[class-suffix]...
...
//#endregion

Regions are re-indexed when line count changes and after saving.

This isn't the most efficient, but I've not seen issues in my tests.

screenshot

For class suffix, open your custom CSS file (right-click something in tree view, pick "Custom icon" > "Open custom CSS file"), and add a rule for .region-background-your-suffix - for example, in the screenshot above I'm using

.region-background-hello {
	background-image: url(test.jpg);
	background-attachment: fixed;
	background-position: center;
	background-size: cover;
	opacity: 0.7;
}

with test.jpg sitting in project directory.

Install instructions

About

Custom colors and/or background images for code regions in GMEdit.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published